結果

問題 No.1716 Bonus Nim
ユーザー pluto77pluto77
提出日時 2022-02-08 10:40:58
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 221 bytes
コンパイル時間 436 ms
コンパイル使用メモリ 10,608 KB
実行使用メモリ 50,240 KB
最終ジャッジ日時 2023-09-05 07:42:39
合計ジャッジ時間 11,547 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,624 KB
testcase_01 AC 20 ms
8,624 KB
testcase_02 AC 20 ms
8,588 KB
testcase_03 AC 19 ms
8,572 KB
testcase_04 AC 253 ms
28,336 KB
testcase_05 AC 256 ms
32,308 KB
testcase_06 AC 245 ms
29,828 KB
testcase_07 AC 265 ms
30,132 KB
testcase_08 AC 258 ms
32,836 KB
testcase_09 AC 250 ms
30,164 KB
testcase_10 AC 257 ms
37,476 KB
testcase_11 AC 259 ms
25,668 KB
testcase_12 AC 267 ms
28,380 KB
testcase_13 AC 293 ms
42,040 KB
testcase_14 AC 260 ms
31,244 KB
testcase_15 TLE -
testcase_16 AC 19 ms
8,620 KB
testcase_17 AC 19 ms
8,592 KB
testcase_18 AC 20 ms
8,472 KB
testcase_19 AC 19 ms
8,632 KB
testcase_20 AC 19 ms
8,528 KB
testcase_21 AC 20 ms
8,468 KB
testcase_22 AC 248 ms
41,816 KB
testcase_23 AC 239 ms
37,092 KB
testcase_24 AC 229 ms
47,136 KB
testcase_25 AC 232 ms
50,240 KB
testcase_26 AC 258 ms
44,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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