結果
| 問題 |
No.1506 Unbalanced Pocky Game
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-04-15 21:49:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 218 bytes |
| コンパイル時間 | 339 ms |
| コンパイル使用メモリ | 82,028 KB |
| 実行使用メモリ | 109,972 KB |
| 最終ジャッジ日時 | 2025-04-15 21:50:38 |
| 合計ジャッジ時間 | 5,342 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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