알고리즘/백준
[java] 백준 11022
henry.hong
2019. 11. 29. 15:38
import java.io.*;
import java.util.StringTokenizer;
public class P11022 {
public static void main(String[] args) throws IOException {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
StringTokenizer st;
int a = Integer.parseInt(bf.readLine());
for(int i = 0 ; i < a; i ++){
st = new StringTokenizer(bf.readLine());
int r1 = Integer.parseInt(st.nextToken());
int r2 = Integer.parseInt(st.nextToken());
bw.write(String.format("Case #%d: %d + %d = %d\n", i+1, r1, r2, r1+r2));
}
bw.flush();
}
}