在C语言里实现==的比较操作,怎么采用程序设计的思想去编写的程序代码怎么做呢

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

可以使用位运算来做,在计算机里面只有二进制,那么可以使用异或来做,因为两个位不相同才为1,假如每个位都是一样的,则得出的为0,所以,A异或B为0,则A==B。