結果

問題 No.601 Midpoint Erase
ユーザー 👑 yumechiyumechi
提出日時 2017-12-01 23:49:01
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 211 ms / 2,000 ms
コード長 429 bytes
コンパイル時間 3,082 ms
コンパイル使用メモリ 86,776 KB
実行使用メモリ 84,944 KB
最終ジャッジ日時 2023-08-24 18:44:11
合計ジャッジ時間 6,366 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,096 KB
testcase_01 AC 73 ms
71,040 KB
testcase_02 AC 71 ms
70,828 KB
testcase_03 AC 206 ms
82,672 KB
testcase_04 AC 172 ms
82,656 KB
testcase_05 AC 155 ms
81,220 KB
testcase_06 AC 132 ms
78,624 KB
testcase_07 AC 170 ms
82,676 KB
testcase_08 AC 158 ms
81,280 KB
testcase_09 AC 174 ms
82,748 KB
testcase_10 AC 119 ms
77,752 KB
testcase_11 AC 211 ms
84,944 KB
testcase_12 AC 160 ms
81,008 KB
testcase_13 AC 74 ms
71,080 KB
testcase_14 AC 74 ms
70,776 KB
testcase_15 AC 74 ms
71,104 KB
testcase_16 AC 74 ms
70,888 KB
testcase_17 AC 71 ms
70,884 KB
testcase_18 AC 72 ms
70,952 KB
testcase_19 AC 72 ms
71,064 KB
testcase_20 AC 72 ms
71,212 KB
testcase_21 AC 72 ms
71,212 KB
testcase_22 AC 72 ms
71,032 KB
testcase_23 AC 71 ms
70,972 KB
testcase_24 AC 72 ms
70,908 KB
testcase_25 AC 72 ms
71,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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 ans % 2 == 1 else "Bob")
0