新的开始SGU,为了完整。
100.A+B
time limit per test: 0.25 sec.
memory limit per test: 65536 KB
Read integers A and B from input file and write their sum in output file.
Input
Input file contains A and B (0<A,B<10001).
Output
Write answer in output file.
Sample Input
5 3
Sample Output
8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SGU 100 -- A+B
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner conin = new Scanner(System.in);
int a = conin.nextInt();
int b = conin.nextInt();
conin.close();
System.out.println(a + b);
}
}