結果

問題 No.601 Midpoint Erase
ユーザー GrayCoder
提出日時 2017-12-01 05:38:49
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 413 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 81,972 KB
実行使用メモリ 144,384 KB
最終ジャッジ日時 2024-11-27 19:41:18
合計ジャッジ時間 31,863 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 TLE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

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

    cnt = 0
    for i in range(N - 1):
        for j in range(i + 1, N):
            x1, y1 = XY[i][0], XY[i][1]
            x2, y2 = XY[j][0], XY[j][1]
            if not (x1 - x2) & 1 and not (y1 - y2) & 1:
                cnt += 1

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

main()
0