結果

問題 No.601 Midpoint Erase
ユーザー daku9640daku9640
提出日時 2017-12-02 05:46:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 86,876 KB
実行使用メモリ 77,628 KB
最終ジャッジ日時 2023-08-24 18:45:35
合計ジャッジ時間 4,380 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
71,296 KB
testcase_01 AC 91 ms
71,444 KB
testcase_02 AC 92 ms
71,188 KB
testcase_03 AC 113 ms
77,304 KB
testcase_04 AC 115 ms
77,380 KB
testcase_05 AC 110 ms
77,256 KB
testcase_06 AC 105 ms
77,000 KB
testcase_07 AC 116 ms
77,572 KB
testcase_08 AC 116 ms
77,128 KB
testcase_09 AC 115 ms
77,344 KB
testcase_10 AC 103 ms
76,856 KB
testcase_11 AC 122 ms
77,628 KB
testcase_12 AC 109 ms
77,428 KB
testcase_13 AC 91 ms
71,296 KB
testcase_14 AC 91 ms
71,500 KB
testcase_15 AC 92 ms
71,296 KB
testcase_16 AC 91 ms
71,356 KB
testcase_17 AC 90 ms
71,296 KB
testcase_18 AC 91 ms
71,156 KB
testcase_19 AC 90 ms
71,016 KB
testcase_20 AC 91 ms
71,264 KB
testcase_21 AC 91 ms
71,188 KB
testcase_22 AC 90 ms
71,192 KB
testcase_23 AC 93 ms
71,136 KB
testcase_24 AC 91 ms
71,132 KB
testcase_25 AC 91 ms
71,192 KB
権限があれば一括ダウンロードができます

ソースコード

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