import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.StringTokenizer;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(br.readLine());
StringTokenizer st;
for(int i=1;i<=N;i++){
st = new StringTokenizer(br.readLine(), " ");
System.out.printf("Case #%d: ", i);
System.out.printf("%d\n", Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken()));
}
br.close();
}
}
'[BOJ] - JAVA' 카테고리의 다른 글
[백준] 2438 : 별 찍기 - 1 JAVA 풀이 (0) | 2022.05.10 |
---|---|
[백준] 11022 : A+B-8 JAVA 풀이 (0) | 2022.05.10 |
[백준] 2742 : 기찍 N JAVA 풀이 (0) | 2022.05.10 |
[백준] 2741 : N 찍기 JAVA 풀이 (0) | 2022.05.10 |
[백준] 15552 : 빠른 A+B JAVA 풀이 (0) | 2022.05.10 |