結果

問題 No.1506 Unbalanced Pocky Game
ユーザー gew1fw
提出日時 2025-06-12 18:11:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 82,328 KB
実行使用メモリ 111,832 KB
最終ジャッジ日時 2025-06-12 18:13:18
合計ジャッジ時間 5,155 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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