結果

問題 No.1716 Bonus Nim
ユーザー rlangevinrlangevin
提出日時 2023-08-30 08:58:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 340 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 963 ms
コンパイル使用メモリ 86,416 KB
実行使用メモリ 170,520 KB
最終ジャッジ日時 2023-08-30 08:58:23
合計ジャッジ時間 11,752 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
71,576 KB
testcase_01 AC 95 ms
71,768 KB
testcase_02 AC 89 ms
71,600 KB
testcase_03 AC 88 ms
71,604 KB
testcase_04 AC 276 ms
132,852 KB
testcase_05 AC 257 ms
136,244 KB
testcase_06 AC 265 ms
134,348 KB
testcase_07 AC 270 ms
126,784 KB
testcase_08 AC 255 ms
124,244 KB
testcase_09 AC 254 ms
119,216 KB
testcase_10 AC 266 ms
142,884 KB
testcase_11 AC 264 ms
112,840 KB
testcase_12 AC 255 ms
121,500 KB
testcase_13 AC 284 ms
132,992 KB
testcase_14 AC 263 ms
132,428 KB
testcase_15 AC 340 ms
81,844 KB
testcase_16 AC 90 ms
71,600 KB
testcase_17 AC 89 ms
71,812 KB
testcase_18 AC 90 ms
71,608 KB
testcase_19 AC 89 ms
71,436 KB
testcase_20 AC 89 ms
71,636 KB
testcase_21 AC 88 ms
71,724 KB
testcase_22 AC 281 ms
135,640 KB
testcase_23 AC 298 ms
143,144 KB
testcase_24 AC 288 ms
170,520 KB
testcase_25 AC 300 ms
163,628 KB
testcase_26 AC 285 ms
145,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *


T = int(input())
for _ in range(T):
    N = int(input())
    C = Counter(list(map(int, input().split())))
    ans = 0
    for k, v in C.items():
        ans |= int(v % 2 == 1)
    print("Alice") if ans else print("Bob")
0