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
思路:没给数据范围,用字符串比较,把后面对0都去掉;
(暑假集训个人训练赛5)数字比较D - A==B?(15p)
两数相等判断问题及思路
最新推荐文章于 2019-04-14 20:48:47 发布
博客给出一个编程问题,即输入两个数A和B,判断A是否等于B,相等输出“YES”,否则输出“NO”,还给出了示例输入输出。同时提供思路,因未给数据范围,采用字符串比较并去掉后面的0。

412

被折叠的 条评论
为什么被折叠?



