본문 바로가기

[BOJ] - JAVA

[백준] 10950 : A+B-3 JAVA 풀이

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int T = in.nextInt();
        int A,B;
        
        for(int i=0;i<T;i++){
            A = in.nextInt();
            B = in.nextInt();
            System.out.println(A+B);
        }
    }
}