結果

問題 No.1506 Unbalanced Pocky Game
ユーザー googol_S0googol_S0
提出日時 2021-05-14 22:25:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 82,460 KB
実行使用メモリ 103,096 KB
最終ジャッジ日時 2024-04-10 00:56:00
合計ジャッジ時間 5,081 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
53,412 KB
testcase_01 WA -
testcase_02 AC 34 ms
52,540 KB
testcase_03 AC 38 ms
60,824 KB
testcase_04 AC 59 ms
82,972 KB
testcase_05 AC 62 ms
86,456 KB
testcase_06 AC 50 ms
76,672 KB
testcase_07 AC 47 ms
71,200 KB
testcase_08 AC 53 ms
76,984 KB
testcase_09 AC 59 ms
86,536 KB
testcase_10 AC 60 ms
88,068 KB
testcase_11 AC 45 ms
70,972 KB
testcase_12 AC 44 ms
70,276 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 33 ms
52,140 KB
testcase_24 AC 34 ms
52,460 KB
testcase_25 AC 68 ms
95,896 KB
testcase_26 AC 76 ms
102,488 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 75 ms
101,392 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 76 ms
102,548 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 34 ms
52,444 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 34 ms
52,768 KB
testcase_42 WA -
testcase_43 WA -
testcase_44 AC 34 ms
52,904 KB
testcase_45 AC 34 ms
52,952 KB
testcase_46 AC 48 ms
73,652 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 51 ms
74,968 KB
testcase_50 AC 50 ms
73,060 KB
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 AC 38 ms
63,004 KB
testcase_56 WA -
testcase_57 WA -
testcase_58 AC 40 ms
63,252 KB
testcase_59 WA -
testcase_60 WA -
testcase_61 WA -
testcase_62 WA -
testcase_63 AC 43 ms
66,880 KB
testcase_64 AC 49 ms
75,844 KB
testcase_65 AC 44 ms
67,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
if N==1 or A[-1]>1:
  print('Alice')
else:
  c=1
  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