1018 Be Careful
Submit solution
Points:
100
Time limit:
1.0s
Memory limit:
32M
Problem types
Allowed languages
C, C++, Java, Python
Description
“Be careful about the precision!”When Tyr doing his mathematic homework,teacher Mr.Qian always giving this warning to him.Now,Tyr has finished his mathematic homework,and here is your task to check whether Tyr’s answer is correct or not.
Input
The input consists of several cases.The first line gives the case number N, the next part has N cases.Each case consists of two numbers R and I.R is a real number; I is an integer number.
Output
For each case please give your check.If R rounds to I,then print “Correct” in a single line, or,print “Not Correct”.For more detail,please look at the samples.
Sample
Input
5
1.20 1
0.5 1
9.9 10
2.9 2
3.4999 3
Output
Correct
Correct
Correct
Not Correct
Correct
Source: qn
Comments