結果

問題 No.1716 Bonus Nim
ユーザー mahiro72
提出日時 2021-10-22 21:58:25
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 157 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 37,076 KB
最終ジャッジ日時 2024-09-23 05:25:04
合計ジャッジ時間 6,818 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
for _ in range(T):
    N = int(input())
    A = list(map(int,input().split()))
    print('Alice'if N%2==1 or A.count(1)%2==1 else 'Bob')    
0