[水题][第一阶段-简单操作][HDOJ-1720]A+B Coming
来源:互联网 发布:留学文书修改 知乎 编辑:程序博客网 时间:2024/06/04 18:25
Problem 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
import java.util.Scanner;public class Main {public static void main(String[] args) {// TODO Auto-generated method stubScanner in = new Scanner(System.in);String a,b;while(in.hasNext()){a=in.next();b=in.next();int A=Integer.parseInt(a,16);int B=Integer.parseInt(b,16);System.out.println(A+B);}}}
0 0
- [水题][第一阶段-简单操作][HDOJ-1720]A+B Coming
- hdoj-1720-A+B Coming
- HDOJ 1720 A+B Coming
- hdoj.1720 A+B Coming 20140804
- hdoj 1720 A+B Coming (超水题!!)
- HDOJ(HDU) 1720 A+B Coming(进制)
- [水题][第一阶段-简单操作][HDOJ-2039]三角形
- A+B Coming 1720
- 1720 A+B Coming
- HDU 1720 A+B Coming
- hdu 1720 A+B Coming
- hdu 1720 A+B Coming
- HDU 1720 A+B Coming
- hd 1720 A+B Coming
- HDU 1720 A+B Coming
- HDU 1720 A+B Coming
- hdu 1720 A+B coming
- HDU-1720(A+B coming)
- Android隐藏软键盘点击EditText之外的地方隐藏软键盘
- iOS 之音效播放
- iOS 之音乐播放
- 9个完整android开源app项目
- JSON字符串转换为JSON对象
- [水题][第一阶段-简单操作][HDOJ-1720]A+B Coming
- 第一次做的
- String中文字符转码
- 不安装oracle客户端,用plsql连接oracle
- 前端网页seo优化
- BOJ【44586】 顽皮的字母
- 第六章思维导图
- JSON对象转换为JSON字符串
- 二分法求多项式单根