結果

問題 No.1506 Unbalanced Pocky Game
ユーザー ああいい
提出日時 2022-03-15 22:42:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 315 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 82,420 KB
実行使用メモリ 103,120 KB
最終ジャッジ日時 2024-09-22 14:57:46
合計ジャッジ時間 6,561 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 34 WA * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int,input().split()))

right = N - 1
count = 0
while right >= 0 and A[right] == -1:
    right -= -1
    count += 1
if count == N:
    if N % 2 == 1:
        print('Alice')
    else:
        print('Bob')
else:
    if count % 2 == 1:
        print('Bob')
    else:
        print('Alice')
0