結果
| 問題 | No.601 Midpoint Erase | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-12-01 23:48:04 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 429 bytes | 
| コンパイル時間 | 385 ms | 
| コンパイル使用メモリ | 81,408 KB | 
| 実行使用メモリ | 84,736 KB | 
| 最終ジャッジ日時 | 2024-11-27 22:48:58 | 
| 合計ジャッジ時間 | 4,432 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | RE * 3 | 
| other | RE * 23 | 
ソースコード
n = int(input())
al = [tuple(int(i) for i in input().split()) for _ in range(n)]
cnt = [0]*4
for a in al:
    if a[0] % 2 == 0 and a[1] % 2 == 0:
         cnt[0] += 1
    if a[0] % 2 == 1 and a[1] % 2 == 0:
         cnt[1] += 1
    if a[0] % 2 == 0 and a[1] % 2 == 1:
         cnt[2] += 1
    if a[0] % 2 == 1 and a[1] % 2 == 1:
         cnt[3] += 1
ans = sum(map(lambda x: x//2, cnt))
print("Alice" if cnt % 2 == 1 else "Bob")
            
            
            
        