백준: 10953(A+B - 6)

강지안·2023년 8월 23일
0

baekjoon

목록 보기
170/186

문제

코드

import java.util.Scanner;

public class q10953 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int T = Integer.parseInt(sc.nextLine());
        for(int i=0; i<T; i++) {
            String[] input = sc.nextLine().split(",");
            System.out.println(Integer.parseInt(input[0]) + Integer.parseInt(input[1]));
        }
    }
}

0개의 댓글