IT는 개발자

백준 알고리즘 [BOJ] 11021번: A+B - 7 본문

백준알고리즘

백준 알고리즘 [BOJ] 11021번: A+B - 7

뚜둔64 2019. 9. 17. 12:02
1
2
3
4
5
6
7
8
9
10
11
12
13
14
public class ABprint {
    public static void main(String[] args) {
        int sum = 0;
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        for(int i=0;i<a;i++) {
            int num1 = scan.nextInt();
            int num2 = scan.nextInt();
            sum = num1+num2;
            System.out.println("Case #"+(i+1)+": "+ sum);
        }
    }
}
 
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4ftext-decoration:none">Colored by Color Scripter
cs

백준 알고리즘 문제

https://www.acmicpc.net/problem/11021

 

11021번: A+B - 7

각 테스트 케이스마다 "Case #x: "를 출력한 다음, A+B를 출력한다. 테스트 케이스 번호는 1부터 시작한다.

www.acmicpc.net

사용언어 

java 자바

Comments