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)); } } }