結果
| 問題 |
No.601 Midpoint Erase
|
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2020-10-14 09:13:12 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 820 ms / 2,000 ms |
| コード長 | 487 bytes |
| コンパイル時間 | 5,007 ms |
| コンパイル使用メモリ | 74,692 KB |
| 実行使用メモリ | 54,144 KB |
| 最終ジャッジ日時 | 2024-07-20 19:00:38 |
| 合計ジャッジ時間 | 13,640 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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