結果

問題 No.1716 Bonus Nim
ユーザー KudeKude
提出日時 2021-10-22 22:37:37
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 807 ms / 2,000 ms
コード長 286 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 81,820 KB
実行使用メモリ 150,800 KB
最終ジャッジ日時 2023-10-24 13:58:09
合計ジャッジ時間 6,359 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,340 KB
testcase_01 AC 39 ms
55,388 KB
testcase_02 AC 40 ms
53,340 KB
testcase_03 AC 40 ms
53,340 KB
testcase_04 AC 185 ms
121,972 KB
testcase_05 AC 185 ms
118,336 KB
testcase_06 AC 192 ms
127,084 KB
testcase_07 AC 200 ms
133,204 KB
testcase_08 AC 195 ms
119,852 KB
testcase_09 AC 193 ms
122,352 KB
testcase_10 AC 193 ms
127,984 KB
testcase_11 AC 187 ms
119,676 KB
testcase_12 AC 188 ms
115,612 KB
testcase_13 AC 205 ms
127,968 KB
testcase_14 AC 184 ms
115,908 KB
testcase_15 AC 807 ms
77,476 KB
testcase_16 AC 39 ms
53,380 KB
testcase_17 AC 39 ms
55,428 KB
testcase_18 AC 38 ms
55,428 KB
testcase_19 AC 38 ms
55,428 KB
testcase_20 AC 38 ms
55,428 KB
testcase_21 AC 39 ms
55,428 KB
testcase_22 AC 203 ms
137,520 KB
testcase_23 AC 202 ms
140,540 KB
testcase_24 AC 198 ms
150,800 KB
testcase_25 AC 206 ms
142,524 KB
testcase_26 AC 215 ms
145,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
for _ in range(int(input())):
    n = int(input())
    c = Counter(map(int, input().split()))
    if n % 2:
        print('Alice')
    else:
        if all(x % 2 == 0 for x in c.values()):
            print('Bob')
        else:
            print('Alice')
0