結果

問題 No.1716 Bonus Nim
ユーザー ああいいああいい
提出日時 2022-03-16 20:29:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 266 bytes
コンパイル時間 577 ms
コンパイル使用メモリ 81,852 KB
実行使用メモリ 133,420 KB
最終ジャッジ日時 2023-10-25 03:26:15
合計ジャッジ時間 5,586 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,608 KB
testcase_01 AC 37 ms
53,608 KB
testcase_02 AC 37 ms
53,608 KB
testcase_03 AC 37 ms
53,608 KB
testcase_04 AC 129 ms
111,472 KB
testcase_05 AC 132 ms
115,700 KB
testcase_06 AC 127 ms
113,768 KB
testcase_07 AC 128 ms
106,512 KB
testcase_08 AC 132 ms
112,668 KB
testcase_09 AC 135 ms
109,668 KB
testcase_10 AC 127 ms
111,508 KB
testcase_11 AC 137 ms
109,672 KB
testcase_12 AC 131 ms
109,004 KB
testcase_13 AC 151 ms
133,024 KB
testcase_14 AC 138 ms
121,544 KB
testcase_15 AC 643 ms
77,156 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())

for _ in range(T):
    N = int(input())
    a = list(map(int,input().split()))
    if N % 2 == 1:
        print('Alice')
        continue
    S = 0
    for i in a:
        S ^= i
    if S == 0:
        print('Bob')
    else:
        print("Alice")
0