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 IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuffer sb = new StringBuffer(); StringTokenizer st; int T = Integer.parseInt(br.readLine()); for (int tc = 1; tc <= T; tc++) { st = new StringTokenizer(br.readLine(), ","); int A = Integer.parseInt(st.nextToken()); int B = Integer.parseInt(st.nextToken()); System.out.println(A + B); } } } | cs |
728x90
반응형
'알고리즘 > 알고리즘 기초문제(백준-입출력)' 카테고리의 다른 글
[백준]11720_숫자의 합★ (0) | 2022.02.15 |
---|---|
[백준]10951_A+B - 4 (0) | 2022.02.15 |
[백준]11718_그대로 출력하기 (0) | 2022.02.15 |
[백준]11022_A+B - 8 (0) | 2022.02.15 |
[백준]11021_A+B - 7 (0) | 2022.02.14 |