728x90
반응형
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.StringTokenizer;
public class Main {
public static void main(String args[]) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st;
String str;
while (true) {
st = new StringTokenizer(br.readLine());
int A = Integer.parseInt(st.nextToken());
int B = Integer.parseInt(st.nextToken());
System.out.println(A + B);
if (A == 0 && B == 0)
break;
}
}
}
|
cs |
728x90
반응형
'알고리즘 > 알고리즘 기초문제(백준-입출력)' 카테고리의 다른 글
[백준]11022_A+B - 8 (0) | 2022.02.15 |
---|---|
[백준]11021_A+B - 7 (0) | 2022.02.14 |
[백준]2557_A+B - 3 (0) | 2022.02.14 |
[백준]2558_A+B - 2 (0) | 2022.02.14 |
[백준]1000_A+B (0) | 2022.02.14 |