forked from sowon-dev/AlgorithmStudy_Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_10951.java
More file actions
26 lines (22 loc) ยท 687 Bytes
/
_10951.java
File metadata and controls
26 lines (22 loc) ยท 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package backjoon;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
// A+B - 4
public class _10951 {
public static void main(String[] args) throws IOException {
//sol. memory 11596 kb runtime 84 ms
//ํ์ํ ๊ธฐ๋ณธ ๊ฐ์ฒด๋ค ์ ์ธ
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st;
String line;
while ((line = br.readLine()) != null) {
st = new StringTokenizer(line, " ");
int a = Integer.parseInt(st.nextToken());
int b = Integer.parseInt(st.nextToken());
System.out.println(a+b);
}
br.close();
}
}