-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQ11022.java
More file actions
25 lines (22 loc) ยท 844 Bytes
/
Q11022.java
File metadata and controls
25 lines (22 loc) ยท 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* Date: 2018. 07. 19.
* URL: https://www.acmicpc.net/problem/11022
* Title: A+B - 8
* Problem: ๋ ์ ์ A์ B๋ฅผ ์
๋ ฅ๋ฐ์ ๋ค์, A+B๋ฅผ ์ถ๋ ฅํ๋ ํ๋ก๊ทธ๋จ์ ์์ฑํ์์ค.
*/
package io.inhyuck.io;
import java.io.*;
import java.util.*;
public class Q11022 {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int t = Integer.parseInt(reader.readLine());
String[] numbers = new String[2];
for (int i = 0; i < t; i++) {
numbers = reader.readLine().split(" ");
System.out.println("Case #" + (i+1) + ": " +
numbers[0] + " + " + numbers[1] + " = " +
(Integer.parseInt(numbers[0]) + Integer.parseInt(numbers[1])));
}
}
}