seong

백준 11021번 본문

알고리즘/백준

백준 11021번

hyeonseong 2022. 7. 29. 10:26
import java.io.*;
import java.nio.Buffer;
import java.util.StringTokenizer;

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        int n = Integer.parseInt(br.readLine());

        StringTokenizer number;
        for(int i = 1; i <= n; i ++){
            number = new StringTokenizer(br.readLine()," ");
            bw.write("Case #" + i + ": ");
            bw.write(Integer.parseInt(number.nextToken()) + Integer.parseInt(number.nextToken()) + "\n");
        }
        br.close();
        bw.flush();
        bw.close();
    }
}

'알고리즘 > 백준' 카테고리의 다른 글

백준 2438번  (0) 2022.07.29
백준 11022번  (0) 2022.07.29
백준 2742번  (0) 2022.07.29
백준 10952번  (0) 2022.07.29
백준 2741번  (0) 2022.07.29