結果

問題 No.601 Midpoint Erase
ユーザー ttrttr
提出日時 2020-02-25 20:04:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 422 bytes
コンパイル時間 193 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 26,624 KB
最終ジャッジ日時 2024-04-21 14:21:51
合計ジャッジ時間 4,249 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,880 KB
testcase_01 AC 26 ms
10,752 KB
testcase_02 AC 28 ms
10,624 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 118 ms
15,360 KB
testcase_07 AC 246 ms
21,632 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 75 ms
13,184 KB
testcase_11 AC 350 ms
26,624 KB
testcase_12 AC 167 ms
17,920 KB
testcase_13 AC 29 ms
10,752 KB
testcase_14 AC 26 ms
10,624 KB
testcase_15 AC 27 ms
10,752 KB
testcase_16 AC 26 ms
10,752 KB
testcase_17 AC 27 ms
10,752 KB
testcase_18 AC 27 ms
10,752 KB
testcase_19 WA -
testcase_20 AC 29 ms
10,624 KB
testcase_21 AC 26 ms
10,752 KB
testcase_22 AC 26 ms
10,624 KB
testcase_23 AC 27 ms
10,752 KB
testcase_24 AC 26 ms
10,752 KB
testcase_25 AC 25 ms
10,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
L = [[int(l) for l in input().split()] for _ in range(N)]

memo = [0]*4
for i in range(N):
    if L[i][0]%2 == 0 and L[i][1]%2 == 0:
        memo[0] += 1
    elif L[i][0]%2 == 0:
        memo[2] += 1
    elif L[i][0]%2 == 1 and L[i][1]%2 == 0:
        memo[3] += 1
    else:
        memo[1] += 1

num = min(memo[0], memo[1]) + min(memo[2], memo[3])
if num%2 == 1:
    print("Alice")
else:
    print("Bob")
0