結果

問題 No.1716 Bonus Nim
ユーザー hir355hir355
提出日時 2021-10-22 22:31:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 798 ms / 2,000 ms
コード長 272 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 81,808 KB
実行使用メモリ 169,208 KB
最終ジャッジ日時 2023-10-24 13:51:23
合計ジャッジ時間 6,903 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,580 KB
testcase_01 AC 42 ms
55,628 KB
testcase_02 AC 44 ms
53,580 KB
testcase_03 AC 40 ms
53,580 KB
testcase_04 AC 204 ms
121,432 KB
testcase_05 AC 216 ms
131,416 KB
testcase_06 AC 205 ms
134,796 KB
testcase_07 AC 218 ms
136,424 KB
testcase_08 AC 208 ms
122,916 KB
testcase_09 AC 230 ms
133,284 KB
testcase_10 AC 218 ms
146,676 KB
testcase_11 AC 212 ms
127,636 KB
testcase_12 AC 209 ms
128,044 KB
testcase_13 AC 228 ms
145,856 KB
testcase_14 AC 216 ms
128,684 KB
testcase_15 AC 798 ms
77,204 KB
testcase_16 AC 40 ms
53,592 KB
testcase_17 AC 40 ms
55,640 KB
testcase_18 AC 40 ms
55,640 KB
testcase_19 AC 41 ms
55,640 KB
testcase_20 AC 40 ms
55,640 KB
testcase_21 AC 40 ms
55,640 KB
testcase_22 AC 224 ms
145,812 KB
testcase_23 AC 226 ms
146,400 KB
testcase_24 AC 230 ms
169,208 KB
testcase_25 AC 243 ms
165,892 KB
testcase_26 AC 227 ms
140,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
t = int(input())
for _ in range(t):
    n = int(input())
    a = list(map(int, input().split()))
    c = Counter(a)
    for v in c.values():
        if v % 2 == 1:
            print('Alice')
            break
    else:
        print('Bob')
0