結果

問題 No.601 Midpoint Erase
ユーザー roaris
提出日時 2019-12-08 12:03:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 412 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 82,368 KB
実行使用メモリ 75,892 KB
最終ジャッジ日時 2024-12-29 23:32:39
合計ジャッジ時間 2,839 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N = int(input())
ee, eo, oe, oo = 0, 0, 0, 0

for _ in range(N):
    xi, yi = map(int, input().split())
    
    if xi%2==0 and yi%2==0:
        ee += 1
    elif xi%2==0 and yi%2==1:
        eo += 1
    elif xi%2==1 and yi%2==0:
        oe += 1
    elif xi%2==1 and yi%2==1:
        oo += 1

p = ee//2+eo//2+oe//2+oo//2

if p%2==0:
    print('Bob')
else:
    print('Alice')
0