#C4325. Verify Total Points
Verify Total Points
Verify Total Points
You are given an integer (T) representing a total score and a list of integers representing the points earned from several challenges. Your task is to determine whether the sum of the points is exactly equal to (T). If the sum of the points, (\sum_{i=1}^n a_i), is equal to (T), print "CORRECT"; otherwise, print "INCORRECT".
Input is read from standard input and output is written to standard output.
inputFormat
The input consists of multiple lines:
- The first line contains an integer (T).
- The second line contains an integer (N), the number of challenge points.
- The third line contains (N) integers separated by spaces representing the points.
outputFormat
Output a single line containing either "CORRECT" if the sum of the provided points equals (T), or "INCORRECT" otherwise.## sample
50
3
10 20 20
CORRECT
</p>