結果

問題 No.1506 Unbalanced Pocky Game
ユーザー lam6er
提出日時 2025-03-31 17:23:37
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 178 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 82,568 KB
実行使用メモリ 110,148 KB
最終ジャッジ日時 2025-03-31 17:24:08
合計ジャッジ時間 7,913 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 num in reversed(a):
    if num > g:
        g = num
    else:
        g = 0
print("Alice" if g != 0 else "Bob")
0