結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,752 KB
testcase_01 AC 30 ms
10,752 KB
testcase_02 AC 29 ms
10,752 KB
testcase_03 AC 252 ms
20,864 KB
testcase_04 AC 286 ms
22,400 KB
testcase_05 AC 211 ms
18,816 KB
testcase_06 AC 130 ms
15,232 KB
testcase_07 AC 268 ms
21,760 KB
testcase_08 AC 231 ms
19,968 KB
testcase_09 AC 276 ms
21,888 KB
testcase_10 AC 84 ms
13,056 KB
testcase_11 AC 386 ms
26,624 KB
testcase_12 AC 186 ms
17,920 KB
testcase_13 AC 29 ms
10,752 KB
testcase_14 AC 30 ms
10,624 KB
testcase_15 AC 30 ms
10,752 KB
testcase_16 AC 30 ms
10,752 KB
testcase_17 AC 29 ms
10,752 KB
testcase_18 AC 29 ms
10,624 KB
testcase_19 AC 30 ms
10,752 KB
testcase_20 AC 30 ms
10,752 KB
testcase_21 AC 30 ms
10,752 KB
testcase_22 AC 30 ms
10,752 KB
testcase_23 AC 30 ms
10,624 KB
testcase_24 AC 30 ms
10,624 KB
testcase_25 AC 30 ms
10,624 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[1] += 1
    elif L[i][0]%2 == 1 and L[i][1]%2 == 0:
        memo[2] += 1
    else:
        memo[3] += 1

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