結果

問題 No.601 Midpoint Erase
ユーザー 1up_aloe1up_aloe
提出日時 2017-12-08 11:05:28
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 424 ms / 2,000 ms
コード長 450 bytes
コンパイル時間 185 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 29,824 KB
最終ジャッジ日時 2024-12-23 03:30:08
合計ジャッジ時間 4,388 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
lis = []
binum = [0]*4
count = 0
for i in range(N):
    lis.append(list(map(int,input().split())))
for l in lis:
    if l[0] % 2 == 0:
        if l[1] % 2 == 0:
            binum[0] += 1
        else:
            binum[1] += 1
    else:
        if l[1] % 2 == 0:
            binum[2] += 1
        else:
            binum[3] += 1
for item in binum:
    count += (item//2)
if count % 2 == 0:
    print ("Bob")
else:
    print ("Alice")
0