코딩테스트 문제집/Softeer(Lv1): FIN
[Softeer] Lv1: A+B(6295)
cogito30
2025. 2. 9. 07:40
반응형
문제
- 링크: https://softeer.ai/practice/6295
풀이
더보기
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = 0; i < n; ++i) {
int a = sc.nextInt();
int b = sc.nextInt();
System.out.printf("Case #%d: %d\n", i + 1, a + b);
}
}
}
반응형