#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
long long a,b,c;
while(cin>>hex>>a>>b)
{
c=a+b;
if(c<0)
{
c=-c;
cout<<'-'<<setiosflags(ios::uppercase)<<hex<<c<<endl;
}
else
cout<<setiosflags(ios::uppercase)<<hex<<c<<endl;
}
return 0;
}
hdu 2057 A + B Again

最新推荐文章于 2024-07-21 10:00:00 发布
