ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 백준 11022 JAVA
    ETC/Algorithm 2023. 5. 19. 23:18
    import java.io.*;
    import java.util.StringTokenizer;
    
    public 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 t = Integer.parseInt(br.readLine());
    
            StringTokenizer st;
            for (int i = 0; i < t; i++) {
                st = new StringTokenizer(br.readLine(), " ");
                int a = Integer.parseInt(st.nextToken());
                int b = Integer.parseInt(st.nextToken());
                bw.write("Case #" + (i + 1) + ": " + a + " + " + b + " = " + (a + b));
                bw.newLine();
            }
            bw.flush();
        }
    }

    댓글

Designed by black7375.