코딩테스트/백준
15552번
by udeserveit1
2024. 7. 26.
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(br.readLine());
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
for (int i = 0; i < N; i++) {
String[] number = br.readLine().split(" ");
int a = Integer.parseInt(number[0]);
int b = Integer.parseInt(number[1]);
bw.write(a + b + "\n");
}
bw.close();
br.close();
}
}