码迷,mamicode.com
首页 > 其他好文 > 详细

HDU 2057: A + B Again

时间:2017-08-17 13:06:48      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:round   turn   author   with   ble   clu   ios   mono   hdu   


///@link http://acm.hdu.edu.cn/showproblem.php?pid=2057
///@author Sycamore
///@date Aug 17
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
long long a,b,ans;
while(cin>>hex>>a>>b)
{
ans=a+b;
if(ans>=0)
cout<<uppercase<<hex<<ans<<\n;
else cout<<uppercase<<hex<<‘-‘<<-ans<<\n;
}
return 0;
}

 

HDU 2057: A + B Again

标签:round   turn   author   with   ble   clu   ios   mono   hdu   

原文地址:http://www.cnblogs.com/zjnu/p/7380319.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!