这道题错了好多把
#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
__int64 a, b; // 之前用int 但数据显然int会爆掉
freopen("in.txt", "r", stdin);
while(scanf("%I64X %I64X", &a, &b) != EOF)
{
if (a+b < 0)
printf("-%I64X\n", -(a+b));
//printf("-%I64x\n", -(a+b)); 输出时字母为小写
else
printf("%I64X\n", a+b);
}
}
/*
Input
+A -A
+1A 12
1A -9
-1A -12
1A -AA
Output
0
2C
11
-2C
-90
*/