結果

問題 No.1506 Unbalanced Pocky Game
ユーザー lam6er
提出日時 2025-04-15 21:46:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 218 bytes
コンパイル時間 442 ms
コンパイル使用メモリ 81,908 KB
実行使用メモリ 111,244 KB
最終ジャッジ日時 2025-04-15 21:47:28
合計ジャッジ時間 5,757 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 42 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

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")
0