結果

問題 No.1506 Unbalanced Pocky Game
ユーザー convexineqconvexineq
提出日時 2021-05-14 22:47:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 136 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 106,240 KB
最終ジャッジ日時 2024-10-02 03:09:58
合計ジャッジ時間 6,208 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 63
権限があれば一括ダウンロードができます

ソースコード

diff #

n,*a = map(int,open(0).read().split())
v = 1
while a and a[-1]==1:
    a.pop()
    v ^= 1
if not a: v^= 1
print("Alice" if v else "Bob")
0