HDOJ1000:A + B Problem
2013-11-18 13:28
239 查看
Problem Description
Calculate A + B.
Input
Each line will contain two integers A and B. Process to end of file.
Output
For each case, output A + B in one line.
Sample Input
1 1
Sample Output
2
Java Code:
Calculate A + B.
Input
Each line will contain two integers A and B. Process to end of file.
Output
For each case, output A + B in one line.
Sample Input
1 1
Sample Output
2
Java Code:
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int a=sc.nextInt(); int b=sc.nextInt(); System.out.println(a+b); } } }
相关文章推荐
- HDOJ Problem1000
- HDOJ 1000 A + B Problem
- HDOJ 1000 A + B Problem
- HDOJ_Problem Archive_1000_A + B Problem
- 从零开始刷HDOJ(1)【HDOJ1000 - a+b problem】
- 【HDOJ 1000】 A + B Problem
- [HDOJ1000]A + B problem
- HDOJ 1000 A + B Problem
- HDOJ 1000 A + B Problem
- Hdoj 1000 A + B Problem
- HDOJ 1000 A + B Problem
- hdoj.1000 A + B Problem 20140721
- HDOJ(1000) A + B Problem
- hdoj1000--A + B Problem
- HDOJ 1000 A+B Problem
- hdoj_1000 A + B Problem
- HDOJ1000 A+B Problem
- HDOJ 1000 A+B Problem
- HDOJ 1000 A + B Problem C++解法
- HDOJ 1000:A + B Problem