题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1418
3 2 0 0
3
被精度坑了WA了一次!
代码如下:
#include <cstdio> int main() { unsigned n, m; while(~scanf("%u %u",&n,&m)) { if(n==0 && m==0) break; printf("%u\n",n+m-2); } return 0; }
原文地址:http://blog.csdn.net/u012860063/article/details/39159763