結果

問題 No.601 Midpoint Erase
ユーザー GrayCoder
提出日時 2017-12-01 06:03:12
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 378 ms / 2,000 ms
コード長 488 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 24,576 KB
最終ジャッジ日時 2024-12-23 03:16:56
合計ジャッジ時間 4,073 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    XY = tuple(tuple(map(int, input().split())) for _ in [0] * N)

    cnt = [0] * 4
    for x, y in XY:
        if x & 1:
            if y & 1:
                cnt[0] += 1
            else:
                cnt[1] += 1
        else:
            if y & 1:
                cnt[2] += 1
            else:
                cnt[3] += 1

    n = 0
    for i in cnt:
        n += i // 2

    if n & 1:
        print('Alice')
    else:
        print('Bob')

main()
0