U E D R , A S I H C RSS

World Cup/송지원



1.

http://poj.org/problem?id=3117
3, 0, 1.
, (0 )

2.

  • ( * 3) .
  • 3 1 3, 2 .
  • ( * 3) 한 sum .

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));
		}
	}
}
  • Accepted ...-_-
    • poj ....;; 히 Accept ..;;;;; -
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:28:26
Processing time 0.0404 sec