結果
問題 |
No.601 Midpoint Erase
|
ユーザー |
|
提出日時 | 2017-12-02 05:10:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 187 ms / 2,000 ms |
コード長 | 268 bytes |
コンパイル時間 | 203 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,392 KB |
最終ジャッジ日時 | 2024-12-23 03:25:55 |
合計ジャッジ時間 | 3,213 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
import sys from collections import defaultdict readline = sys.stdin.readline N = int(readline()) m = defaultdict(int) for _ in [0] * N: x, y = map(int, readline().split()) m[(x & 1, y & 1)] += 1 print("Alice" if sum(i // 2 for i in m.values()) & 1 else "Bob")