結果

問題 No.1506 Unbalanced Pocky Game
ユーザー googol_S0
提出日時 2021-05-14 22:23:56
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 394 ms
コンパイル使用メモリ 82,416 KB
実行使用メモリ 101,248 KB
最終ジャッジ日時 2024-10-02 02:00:14
合計ジャッジ時間 6,349 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 52 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
if N==1 or A[-1]>1:
  print('Alice')
else:
  c=0
  for i in range(N-2,-1,-1):
    if A[i]==1:
      c+=1
    else:
      break
  if c&1:
    print('Alice')
  else:
    print('Bob')
0