結果
問題 |
No.1716 Bonus Nim
|
ユーザー |
![]() |
提出日時 | 2021-10-22 22:48:00 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 372 bytes |
コンパイル時間 | 226 ms |
コンパイル使用メモリ | 82,396 KB |
実行使用メモリ | 157,352 KB |
最終ジャッジ日時 | 2024-09-23 06:32:40 |
合計ジャッジ時間 | 5,380 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 2 WA * 24 |
ソースコード
t = int(input()) for _ in range(t): n = int(input()) a = list(map(int,input().split())) if n & 1: print("Alice") else: s = set(a) if not len(s) == 2: print("Bob") else: x,y = sorted(list(s)) if a.count(y) == 1: print("Alice") else: print("Bob")