結果
| 問題 |
No.2059 Odd Move Nim
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-19 18:30:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 172 bytes |
| コンパイル時間 | 428 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 102,424 KB |
| 最終ジャッジ日時 | 2024-12-22 02:36:43 |
| 合計ジャッジ時間 | 2,975 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 WA * 10 |
ソースコード
n = int(input())
a = list(map(int,input().split()))
now = 0
for i in range(1, n):
if i % 2 == 1: continue
now ^= a[i]
if now == 0:
print("Bob")
else:
print("Alice")