1. 문 명 ¶
| 링 | http://poj.org/problem?id=3117 | 
| 를 면 3, 0, 1 . | |
| , 리 를 (0 미) | |
| 몇 번 는 | 
3. Status ¶
| Run ID | User | Problem | Result | Memory | Time | Language | Code Length | Submit Time | 
| 8870504 | enochbible | 3117 | Accepted | 5236K | 219MS | Java | 453B | 2011-07-12 09:36:06 | 
| 8870493 | enochbible | 3117 | Compile Error | Java | 456B | 2011-07-12 09:35:27 | 
-  class명 Main  는  몰 Compile Error를  ...-_-;; //   복붙  바  
 
 
4. Source ¶
import java.util.Scanner;
public class ACM3117 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(true) {
			int teams = sc.nextInt(); // 0 <= T <= 200
			int matches = sc.nextInt(); // 0 <= N <= 10000
			if(teams == 0) break;
			int sum = 0;
			for(int i = 0; i < teams; i++) {
				sc.nextLine();
				sc.next();
				sum += sc.nextInt();
			}
			System.out.println((matches * 3 - sum));
		}
	}
}













