๋ฐ์ํ
import java.util.Scanner;
public class Main {
// 11022 A+B - 8
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
String[] out = new String[t];
for (int i=0; i < t; i++) {
int a = sc.nextInt();
int b = sc.nextInt();
out[i] = "Case #"+(i+1)+": "+a+" + "+b+" = "+(a+b);
}
sc.close();
for (String o:out) System.out.println(o);
}
}
๋ฐ์ํ
'๐ธ Algorithm > ๐ธ ๋ฐฑ์ค BaekJoon' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค][java][2439][๋ณ ์ฐ๊ธฐ - 2] (0) | 2023.10.09 |
---|---|
[๋ฐฑ์ค][java][2438][๋ณ ์ฐ๊ธฐ - 1] (0) | 2023.10.09 |
[๋ฐฑ์ค][java][11021][A+B - 7] (0) | 2023.10.08 |
[๋ฐฑ์ค][java][15552][๋น ๋ฅธ A+B] (1) | 2023.10.08 |
[๋ฐฑ์ค][java][25314][์ฝ๋ฉ์ ์ฒด์ก๊ณผ๋ชฉ ์ ๋๋ค] (0) | 2023.10.03 |