結果

問題 No.601 Midpoint Erase
ユーザー htkbhtkb
提出日時 2018-05-19 13:18:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 315 ms / 2,000 ms
コード長 430 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,796 KB
実行使用メモリ 28,220 KB
最終ジャッジ日時 2023-09-10 23:42:04
合計ジャッジ時間 4,150 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,828 KB
testcase_01 AC 16 ms
7,928 KB
testcase_02 AC 15 ms
7,928 KB
testcase_03 AC 197 ms
20,668 KB
testcase_04 AC 229 ms
22,736 KB
testcase_05 AC 165 ms
18,324 KB
testcase_06 AC 97 ms
13,916 KB
testcase_07 AC 214 ms
21,800 KB
testcase_08 AC 184 ms
19,668 KB
testcase_09 AC 220 ms
22,088 KB
testcase_10 AC 60 ms
11,160 KB
testcase_11 AC 315 ms
28,220 KB
testcase_12 AC 146 ms
17,084 KB
testcase_13 AC 15 ms
7,688 KB
testcase_14 AC 16 ms
7,828 KB
testcase_15 AC 16 ms
7,764 KB
testcase_16 AC 15 ms
7,760 KB
testcase_17 AC 16 ms
7,760 KB
testcase_18 AC 17 ms
7,764 KB
testcase_19 AC 15 ms
7,844 KB
testcase_20 AC 16 ms
7,764 KB
testcase_21 AC 16 ms
7,848 KB
testcase_22 AC 15 ms
7,840 KB
testcase_23 AC 16 ms
7,752 KB
testcase_24 AC 16 ms
7,776 KB
testcase_25 AC 16 ms
7,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
a = [list(map(int, input().split())) for _ in [0]*N]
odd, even = [], []
for n, m in a:
    if n%2:
        odd.append(m)
    else:
        even.append(m)
pair = [[0, 0], [0, 0]]
for _a, p in zip((odd, even), pair):
    for n in _a:
        if n%2:
            p[0] += 1
        else:
            p[1] += 1
total = pair[0][0]//2 + pair[0][1]//2 + pair[1][0]//2 + pair[1][1]//2
print("Alice" if total%2 else "Bob")
0