HDU_ACM step 1.2.1 A+B Coming
来源:互联网 发布:值得看的网络小说 知乎 编辑:程序博客网 时间:2024/05/17 07:18
版权所有,欢迎转载,转载请注明出处,谢谢
A+B Coming
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4716 Accepted Submission(s): 2130Problem Description
Many classmates said to me that A+B is must needs.
If you can’t AC this problem, you would invite me for night meal. ^_^
If you can’t AC this problem, you would invite me for night meal. ^_^
Input
Input may contain multiple test cases. Each case contains A and B in one line.
A, B are hexadecimal number.
Input terminates by EOF.
A, B are hexadecimal number.
Input terminates by EOF.
Output
Output A+B in decimal number in one line.
Sample Input
1 9A Ba b
Sample Output
102121
基础,这道题主要是练习如何输入16进制的数。
#include<iostream>#include<string>using namespace std;int main(){int a ,b ;while(cin>>hex>>a>>hex>>b){cout<<a+b<<endl;}return 0;}
1 0
- HDU_ACM step 1.2.1 A+B Coming
- hdu 1.2.1A+B Coming
- 1.2.2 a+b coming
- HDU_ACM-2033 人见人爱A+B
- HDU_ACM-2034 人见人爱A-B
- HDU_ACM-2035 人见人爱A^B
- HDU_ACM-2057 A+B again
- A+B Coming 1720
- A+B Coming
- HDU1720 A+B Coming
- 1720 A+B Coming
- HDOJ1720 A+B Coming
- HDU1720 A+B Coming
- A+B Coming
- A+B Coming 解题报告
- HDU 1720 A+B Coming
- hdu 1720 A+B Coming
- hdu 1720 A+B Coming
- 号称最好的JQUERY幻灯片-NIVO SLIDER
- MySQL导入大sql 文件大小限制问题的解决
- Java serializable
- 矩阵、向量求导法则
- HDU 5072 Coprime
- HDU_ACM step 1.2.1 A+B Coming
- LeetCode 131 Generate Parentheses
- 你怎么看
- poj 1469 COURSES(判断是否是存在不匹配的点(对于右边的点集来说))
- Android异步Http网络请求访问服务器端的用法
- OS X远程桌面连接Linux
- nyist 613 免费馅饼
- Sevenk Love Oimaster(trie,MAP后缀自动机)
- ListView notifyDataSetChanged()不刷新数据