結果
| 問題 | No.2059 Odd Move Nim |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-19 18:30:59 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 65 ms / 2,000 ms |
| コード長 | 172 bytes |
| 記録 | |
| コンパイル時間 | 264 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 108,544 KB |
| 最終ジャッジ日時 | 2026-05-28 12:39:31 |
| 合計ジャッジ時間 | 2,632 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 |
ソースコード
n = int(input())
a = list(map(int,input().split()))
now = 0
for i in range(1, n):
if i % 2 == 0: continue
now ^= a[i]
if now == 0:
print("Bob")
else:
print("Alice")