杭电OJ2057
这题
考的是16进制读取,用C++的关键字
#include<cstdio>
#include<iostream>
using namespace std;
int main(){
int n,m,sum;
while(cin>>hex>>n>>m){
sum = n+m;
if(sum<0){
cout<<"-"<<hex<<uppercase<<-sum<<endl;
}else{
cout<<hex<<uppercase<<sum<<endl;
}
}
return 0;
}