[백준 JAVA] 11021번 풀이 - A+B-7
by mini_min
package baekjoon; import java.io.IOException; import java.util.Scanner; /** * A+B - 7 */ public class _11021 { public static void main(String[] args) throws NumberFormatException, IOException { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = 0; int b = 0; for(int i = 1; i <= n; i ++) { a = sc.nextInt(); b = sc.nextInt(); System.out.println("Case #" + i + ": " + (a+b)); } sc.close(); } }
블로그의 정보
개발자 미니민의 개발로그
mini_min