#include<cstdio> int main() { __int64 a,b,sum; while(scanf("%I64X%I64X",&a,&b)!=EOF) { sum=a+b; if(sum>=0) printf("%I64X\n",sum); else printf("-%I64X\n",-sum); } return 0; }
C++16进制加法
原文:https://www.cnblogs.com/Brimon-zZY/p/13969699.html