1000:A+B problem
2012-05-24 16:02
232 查看
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
Sample Output
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
2Answer: import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); while(scan.hasNext()) { int i = scan.nextInt(); int j = scan.nextInt(); System.out.println(i+j); } } }
相关文章推荐
- A + B Problem(1000)
- 杭电1000 A + B Problem
- TYVJ1000 A+B problem [存个高精模板]
- (java)杭电acm 题号:1000 A + B Problem
- hdoj1000--A + B Problem
- (python)百练1000: A+B Problem
- 1000 A + B Problem
- POJ 1000 A+B Problem
- BZOJ 1000: A+B Problem
- CodeForces - 1000D:Yet Another Problem On a Subsequence (DP+组合数)
- [POJ][1000]A+B Problem
- TopCoder SRM 652 Div2 Problem 1000 - NoRightTurnDiv2 (几何 + 贪心)
- POJ 1000 A+B Problem 题解
- HDOJ 1000 A + B Problem
- JAVA hdu 1000(A + B Problem)&&hdu 1001(Sum Problem)
- HDOJ(1000) A + B Problem
- [HDU]1000(A+B Problem)
- 欧拉项目 Problem 25 of in the Fibonacci sequence to contain 1000 digits
- problem 1000: A+B problem
- POJ_1000_A+B Problem