Playground/자바문제집

[백준] 10950번

미숫가루설탕많이 2022. 12. 25. 13:31
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int A = sc.nextInt(); // 몇 번 수행할 것인지

        for (int i = 0; i < A; i++) {
            int B = sc.nextInt();
            int C = sc.nextInt();
            System.out.println(B + C);
        }

    }
}

 

'Playground > 자바문제집' 카테고리의 다른 글

[백준] 25304번  (0) 2023.01.08
[백준] 8393번  (0) 2022.12.25
[백준] 2525번  (0) 2022.12.25
[백준] 2884번  (0) 2022.12.24
[백준] 14681번  (0) 2022.12.24