結果
| 問題 |
No.1506 Unbalanced Pocky Game
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-04-16 15:29:42 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 218 bytes |
| コンパイル時間 | 402 ms |
| コンパイル使用メモリ | 81,712 KB |
| 実行使用メモリ | 110,936 KB |
| 最終ジャッジ日時 | 2025-04-16 15:32:45 |
| 合計ジャッジ時間 | 6,301 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 42 WA * 21 |
ソースコード
n, *rest = map(int, open(0).read().split())
A = rest[:n]
current_g = 0
for x in reversed(A):
if x > current_g:
current_g = x
else:
current_g = x - 1
print("Alice" if current_g != 0 else "Bob")
lam6er