题目:
Problem Description
Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO".
Input
each test case contains two numbers A and B.
Output
for each case, if A is equal to B, you should print "YES", or print "NO".
Sample Input
1 2
2 2
3 3
4 3
Sample Output
NO
YES
YES
NO
我的代码:(有点简单)提示我“超出输出极限”
#include
int main()
{
float n,m;
while(scanf("%f %f",&n,&m)!=EOF)
{
if(m==n)
printf("YES\n");
else
printf("NO\n");
}
return 0;
}
|