import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int num = Integer.parseInt(br.readLine());
StringTokenizer st;
for (int i = 0; i < num; i++) {
st = new StringTokenizer(br.readLine(), " "); // 문자열 분리
bw.write((Integer.parseInt(st.nextToken())) + Integer.parseInt(st.nextToken()) + "\n");
}
br.close();
bw.flush(); // 버퍼 비우기
bw.close();
}
}
'Playground > 자바문제집' 카테고리의 다른 글
[백준] 11022번 (0) | 2023.01.19 |
---|---|
[백준] 11021번 (0) | 2023.01.19 |
[백준] 25304번 (0) | 2023.01.08 |
[백준] 8393번 (0) | 2022.12.25 |
[백준] 10950번 (0) | 2022.12.25 |