結果

問題 No.1506 Unbalanced Pocky Game
ユーザー gew1fw
提出日時 2025-06-12 12:53:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 82,676 KB
実行使用メモリ 111,876 KB
最終ジャッジ日時 2025-06-12 12:55:42
合計ジャッジ時間 6,572 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 40 WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

n, *rest = map(int, open(0).read().split())
A = rest[:n]

g = 0
for a in reversed(A):
    if g == 0:
        g = a
    else:
        if a > g:
            g = a
        else:
            g = 0

print("Alice" if g != 0 else "Bob")
0