#P10372. Correct Addition Checker
Correct Addition Checker
Correct Addition Checker
Little Keke has \(T\) arithmetic problems in the form \(a+b=c\). For each problem, you need to check whether the calculation is correct. Specifically, for each problem, determine if \(a+b\) equals \(c\).
inputFormat
The first line contains a single integer \(T\), representing the number of problems. The following \(T\) lines each contain a problem in the format a + b = c
, where a
, b
, and c
are integers. Note that extra spaces may appear in the input.
outputFormat
For each problem, output Correct
if the calculation is right, or Incorrect
otherwise. Each result should be printed on a new line.
sample
3
1 + 2 = 3
2 + 2 = 5
10 + 15 = 25
Correct
Incorrect
Correct
</p>