hdoj:2057

#include <cstdio>
#include <cmath>
#include <iostream>
using namespace std;

int main()
{
    __int64 a, b;
    while(scanf("%I64X %I64X", &a, &b) != EOF)
    {
        printf(a+b < 0 ? "-%I64X
":"%I64X
", a+b < 0 ? -a-b : a+b);
    }
    return 0;
}

16进制的加法

原文地址:https://www.cnblogs.com/bbbblog/p/6048181.html