-
10950번: A+B - 3코테/백준 2024. 5. 10. 22:52

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); // 몇번 진행할 건지 케이스 개수 T 를 의미 for (int i = 0; i < num; i++) { // num 이 5면 i 가 0 ~ 4 까지 총 5번 진행 int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(a + b); } sc.close(); } }'코테 > 백준' 카테고리의 다른 글
25304번: 영수증 (0) 2024.05.16 8393번: 합 (0) 2024.05.14 2739번: 구구단 (0) 2024.05.09 2480번: 주사위 세개 (0) 2024.05.08 2525번: 오븐 시계 (1) 2024.05.07