백준 java 11021 A+B-7

임명수·2023년 5월 5일
0

백준

목록 보기
7/31

https://www.acmicpc.net/problem/11021

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main{
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int a = Integer.parseInt(br.readLine());

        StringTokenizer st;
        for(int i =1; i<a+1; i++){
            st = new StringTokenizer(br.readLine(), " ");
            System.out.println("Case #" + i + ": "
            +(Integer.parseInt(st.nextToken())
                    + Integer.parseInt(st.nextToken())  ) );
        }
        br.close();
    }
}
profile
푸른영혼의별

0개의 댓글