結果
| 問題 | No.601 Midpoint Erase |
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2020-10-14 09:13:12 |
| 言語 | Java (openjdk 26.0.2.1 + ac-library) |
| 結果 |
AC
不安定
|
| 実行時間 | 470 ms / 2,000 ms |
| + 852µs | |
| コード長 | 487 bytes |
| 記録 | |
| コンパイル時間 | 1,464 ms |
| コンパイル使用メモリ | 84,092 KB |
| 実行使用メモリ | 54,296 KB |
| 最終ジャッジ日時 | 2026-08-20 10:43:56 |
| 合計ジャッジ時間 | 8,331 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
import java.util.*;
public class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] counts = new int[4];
for (int i = 0; i < n; i++) {
counts[sc.nextInt() % 2 + sc.nextInt() % 2 * 2]++;
}
int sum = 0;
for (int x : counts) {
sum += x / 2;
}
if (sum % 2 == 0) {
System.out.println("Bob");
} else {
System.out.println("Alice");
}
}
}
tenten