結果

問題 No.601 Midpoint Erase
ユーザー 👑 rin204rin204
提出日時 2022-01-19 22:59:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 277 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 87,184 KB
実行使用メモリ 77,312 KB
最終ジャッジ日時 2023-08-15 08:13:29
合計ジャッジ時間 4,234 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,468 KB
testcase_01 AC 72 ms
71,200 KB
testcase_02 AC 70 ms
71,468 KB
testcase_03 AC 122 ms
77,224 KB
testcase_04 AC 126 ms
77,312 KB
testcase_05 AC 117 ms
77,104 KB
testcase_06 AC 105 ms
77,208 KB
testcase_07 AC 123 ms
77,224 KB
testcase_08 AC 121 ms
76,936 KB
testcase_09 AC 125 ms
76,972 KB
testcase_10 AC 101 ms
77,224 KB
testcase_11 AC 137 ms
77,208 KB
testcase_12 AC 113 ms
76,960 KB
testcase_13 AC 70 ms
71,200 KB
testcase_14 AC 71 ms
71,496 KB
testcase_15 AC 69 ms
71,332 KB
testcase_16 AC 72 ms
71,484 KB
testcase_17 AC 70 ms
71,312 KB
testcase_18 AC 70 ms
71,276 KB
testcase_19 AC 71 ms
71,200 KB
testcase_20 AC 71 ms
71,388 KB
testcase_21 AC 70 ms
71,248 KB
testcase_22 AC 71 ms
71,256 KB
testcase_23 AC 71 ms
71,192 KB
testcase_24 AC 69 ms
71,220 KB
testcase_25 AC 70 ms
71,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
cnt = [[0] * 2 for _ in range(2)]
for _ in range(n):
    x, y = map(int, input().split())
    cnt[x % 2][y % 2] += 1
    
ans = 0
for i in range(2):
    for j in range(2):
        ans += cnt[i][j] // 2
if ans % 2 == 0:
    print("Bob")
else:
    print("Alice")
0