結果
| 問題 | No.601 Midpoint Erase | 
| コンテスト | |
| ユーザー |  lam6er | 
| 提出日時 | 2025-03-20 20:26:50 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 123 ms / 2,000 ms | 
| コード長 | 291 bytes | 
| コンパイル時間 | 172 ms | 
| コンパイル使用メモリ | 82,772 KB | 
| 実行使用メモリ | 77,104 KB | 
| 最終ジャッジ日時 | 2025-03-20 20:28:12 | 
| 合計ジャッジ時間 | 3,136 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 23 | 
ソースコード
n = int(input())
from collections import defaultdict
groups = defaultdict(int)
for _ in range(n):
    x, y = map(int, input().split())
    key = (x % 2, y % 2)
    groups[key] += 1
total = 0
for count in groups.values():
    total += count // 2
print("Alice" if total % 2 == 1 else "Bob")
            
            
            
        