結果
| 問題 |
No.1716 Bonus Nim
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-16 20:28:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 266 bytes |
| コンパイル時間 | 235 ms |
| コンパイル使用メモリ | 81,944 KB |
| 実行使用メモリ | 121,088 KB |
| 最終ジャッジ日時 | 2024-09-24 22:55:06 |
| 合計ジャッジ時間 | 5,505 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 26 |
ソースコード
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 ^= a
if S == 0:
print('Bob')
else:
print("Alics")