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.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st;
int T = Integer.parseInt(br.readLine());// 테케
int sum=0;
for (int tc = 1; tc <= T; tc++) {
st = new StringTokenizer(br.readLine());
int A = Integer.parseInt(st.nextToken());
int B = Integer.parseInt(st.nextToken());
sum = A + B;
System.out.println(sum);
}
}
}
|
cs |
728x90
반응형
'알고리즘 > 알고리즘 기초문제(백준-입출력)' 카테고리의 다른 글
[백준]11021_A+B - 7 (0) | 2022.02.14 |
---|---|
[백준]10952_A+B - 5 (0) | 2022.02.14 |
[백준]2558_A+B - 2 (0) | 2022.02.14 |
[백준]1000_A+B (0) | 2022.02.14 |
[백준]2557_Hello World (0) | 2022.02.14 |