백준 11021번| Java - A+B-7

bj1

풀이

import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();
		
		for(int i = 1; i<=t; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			System.out.println("Case #"+ i + ": "+ (a+b));
		}
	}
}

comments powered by Disqus