結果

問題 No.1716 Bonus Nim
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2021-10-23 17:43:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 796 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 1,002 ms
コンパイル使用メモリ 81,604 KB
実行使用メモリ 161,440 KB
最終ジャッジ日時 2023-10-26 00:54:23
合計ジャッジ時間 9,099 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,288 KB
testcase_01 AC 41 ms
55,336 KB
testcase_02 AC 40 ms
53,288 KB
testcase_03 AC 40 ms
53,288 KB
testcase_04 AC 236 ms
120,268 KB
testcase_05 AC 218 ms
131,092 KB
testcase_06 AC 206 ms
134,212 KB
testcase_07 AC 220 ms
141,648 KB
testcase_08 AC 209 ms
122,592 KB
testcase_09 AC 218 ms
132,940 KB
testcase_10 AC 221 ms
146,340 KB
testcase_11 AC 215 ms
130,716 KB
testcase_12 AC 207 ms
127,460 KB
testcase_13 AC 229 ms
144,904 KB
testcase_14 AC 216 ms
129,928 KB
testcase_15 AC 796 ms
77,036 KB
testcase_16 AC 41 ms
53,316 KB
testcase_17 AC 41 ms
55,364 KB
testcase_18 AC 42 ms
55,364 KB
testcase_19 AC 41 ms
55,364 KB
testcase_20 AC 42 ms
55,364 KB
testcase_21 AC 41 ms
55,364 KB
testcase_22 AC 238 ms
145,496 KB
testcase_23 AC 238 ms
146,172 KB
testcase_24 AC 244 ms
161,440 KB
testcase_25 AC 260 ms
159,344 KB
testcase_26 AC 235 ms
139,960 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)
    ans = "Bob"
    for v in C.values():
        if v%2:
            ans = "Alice"
    print(ans)
0