結果

問題 No.601 Midpoint Erase
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2022-09-16 06:00:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 198 ms / 2,000 ms
コード長 358 bytes
コンパイル時間 1,777 ms
コンパイル使用メモリ 86,724 KB
実行使用メモリ 89,496 KB
最終ジャッジ日時 2023-08-22 22:00:18
合計ジャッジ時間 5,586 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
72,868 KB
testcase_01 AC 113 ms
72,660 KB
testcase_02 AC 112 ms
72,896 KB
testcase_03 AC 184 ms
84,856 KB
testcase_04 AC 175 ms
85,120 KB
testcase_05 AC 157 ms
82,764 KB
testcase_06 AC 143 ms
80,616 KB
testcase_07 AC 177 ms
84,812 KB
testcase_08 AC 165 ms
84,580 KB
testcase_09 AC 178 ms
84,816 KB
testcase_10 AC 134 ms
80,488 KB
testcase_11 AC 198 ms
89,496 KB
testcase_12 AC 155 ms
82,756 KB
testcase_13 AC 111 ms
72,748 KB
testcase_14 AC 111 ms
72,836 KB
testcase_15 AC 108 ms
72,992 KB
testcase_16 AC 110 ms
72,904 KB
testcase_17 AC 111 ms
72,828 KB
testcase_18 AC 111 ms
72,684 KB
testcase_19 AC 111 ms
72,908 KB
testcase_20 AC 109 ms
72,652 KB
testcase_21 AC 115 ms
72,724 KB
testcase_22 AC 113 ms
72,976 KB
testcase_23 AC 112 ms
72,636 KB
testcase_24 AC 114 ms
72,824 KB
testcase_25 AC 113 ms
72,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math

input = sys.stdin.readline

N = int(input())
XY = [tuple(map(int,input().split())) for _ in range(N)]

M = [(x%2,y%2) for x,y in XY]
C = Counter(M)
ans = 0
for v in C.values():
    ans += v//2
if ans%2==0:
    print('Bob')
else:
    print('Alice')
0