結果

問題 No.601 Midpoint Erase
ユーザー ys
提出日時 2018-02-10 21:26:59
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 351 ms / 2,000 ms
コード長 354 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-06 07:52:18
合計ジャッジ時間 4,478 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
be, le, re, bo = 0, 0, 0, 0
for i in range(N):
    x, y = map(int, input().split())
    if x % 2 == 0 and y % 2 == 0:
        be += 1
    elif x % 2 == 0:
        le += 1
    elif y % 2 == 0:
        re += 1
    else:
        bo += 1

num = be // 2 + le // 2 + re // 2 + bo // 2
if num % 2 == 0:
    print("Bob")
else:
    print("Alice")
0