結果
| 問題 |
No.2059 Odd Move Nim
|
| コンテスト | |
| ユーザー |
hir355
|
| 提出日時 | 2022-08-12 19:43:07 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 99 ms / 2,000 ms |
| コード長 | 150 bytes |
| コンパイル時間 | 248 ms |
| コンパイル使用メモリ | 81,912 KB |
| 実行使用メモリ | 102,144 KB |
| 最終ジャッジ日時 | 2024-10-15 11:04:24 |
| 合計ジャッジ時間 | 2,775 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
x = 0
for i in range(1, n, 2):
x ^= a[i]
if x == 0:
print('Bob')
else:
print('Alice')
hir355