10953번 풀이 [Java]

sua·2022년 10월 1일
0

Baekjoon

목록 보기
148/161

문제


풀이

import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        
		int n = sc.nextInt();
		for(int i = 0; i < n; i++) {
			String[] str = sc.next().split(",");
			int a = Integer.parseInt(str[0]);
			int b = Integer.parseInt(str[1]);
			
			System.out.println(a + b);
		}
        
        sc.close();
	}
}
profile
가보자고

0개의 댓글