//2057 A+B again
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
using namespace std;
int main()
{
__int64 a, b;
while (scanf("%I64X %I64X",&a,&b))
{
printf(a + b < 0 ? "-%I64X\n" : "%I64X\n", -a - b < 0 ? a + b : a + b);
//%I64X不能输出负数,碰到负数自己转成正数,在前面加-;
}
return 0;
}
hdu 2057
最新推荐文章于 2024-09-01 16:42:17 发布