結果

問題 No.601 Midpoint Erase
ユーザー brthyyjpbrthyyjp
提出日時 2021-02-04 11:15:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 145 ms / 2,000 ms
コード長 360 bytes
コンパイル時間 750 ms
コンパイル使用メモリ 86,696 KB
実行使用メモリ 77,292 KB
最終ジャッジ日時 2023-09-13 06:12:48
合計ジャッジ時間 5,314 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,332 KB
testcase_01 AC 72 ms
70,980 KB
testcase_02 AC 71 ms
71,404 KB
testcase_03 AC 138 ms
77,192 KB
testcase_04 AC 131 ms
77,292 KB
testcase_05 AC 124 ms
77,252 KB
testcase_06 AC 112 ms
77,212 KB
testcase_07 AC 130 ms
77,256 KB
testcase_08 AC 127 ms
77,232 KB
testcase_09 AC 130 ms
77,276 KB
testcase_10 AC 107 ms
77,072 KB
testcase_11 AC 145 ms
77,292 KB
testcase_12 AC 120 ms
77,264 KB
testcase_13 AC 72 ms
71,404 KB
testcase_14 AC 71 ms
71,216 KB
testcase_15 AC 72 ms
71,356 KB
testcase_16 AC 72 ms
71,384 KB
testcase_17 AC 72 ms
71,176 KB
testcase_18 AC 73 ms
71,024 KB
testcase_19 AC 72 ms
71,016 KB
testcase_20 AC 72 ms
71,196 KB
testcase_21 AC 72 ms
71,408 KB
testcase_22 AC 71 ms
71,020 KB
testcase_23 AC 73 ms
71,200 KB
testcase_24 AC 73 ms
71,232 KB
testcase_25 AC 73 ms
70,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
XY = []
ee = 0
eo = 0
oe = 0
oo = 0
for i in range(n):
    x, y = map(int, input().split())
    if x%2 == 0 and y%2 == 0:
        ee += 1
    elif x%2 == 0 and y%2 == 1:
        eo += 1
    elif x%2 == 1 and y%2 == 0:
        oe += 1
    else:
        oo += 1
c = ee//2+eo//2+oe//2+oo//2
if c%2 == 1:
    print('Alice')
else:
    print('Bob')
0