题目:http://acm.hdu.edu.cn/showproblem.php?pid=1720
题目:http://acm.hdu.edu.cn/showproblem.php?pid=2057
代码是同一个:
简单的想哭。。。想了好复杂;
#include<stdio.h>
int main()
{
int a,b;
while(scanf("%x%x",&a,&b)!=EOF)
{
printf("%d\n",a+b);
}
return 0;
}
2057要用 %I64X;