結果

問題 No.601 Midpoint Erase
ユーザー daku9640
提出日時 2017-12-02 05:46:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 107 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 444 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 77,056 KB
最終ジャッジ日時 2024-12-23 03:26:26
合計ジャッジ時間 3,140 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from collections import defaultdict
readline = sys.stdin.readline
N = int(readline())
g = [0] * 4
for _ in [0] * N:
    x, y = map(int, readline().split())
    g[(x & 1) << 1 ^ (y & 1)] += 1
print("Alice" if sum(i // 2 for i in g) & 1 else "Bob")
0