結果

問題 No.1506 Unbalanced Pocky Game
ユーザー H3PO4
提出日時 2021-05-14 22:21:18
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 181 bytes
コンパイル時間 409 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 24,304 KB
最終ジャッジ日時 2024-10-02 01:53:05
合計ジャッジ時間 6,045 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 51 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = tuple(map(int, input().split()))
flag = True
for a in A:
    if a == 1:
        flag = not flag
    else:
        flag = True
print('Alice' if flag else 'Bob')
0