#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
for(int i=0;i<n;i++){
double k;
int g;
cin>>k>>g;
if(g-k>0.5 || k-g>=0.5)
cout<<"Not Correct"<<endl;
else
cout<<"Correct"<<endl;
}
return 0;
}
using namespace std;
int main(){
int n;
cin>>n;
for(int i=0;i<n;i++){
double k;
int g;
cin>>k>>g;
if(g-k>0.5 || k-g>=0.5)
cout<<"Not Correct"<<endl;
else
cout<<"Correct"<<endl;
}
return 0;
}
感悟:ACM的例子很有解题的分析价值!认真读题,认真分析样本输入!!!