結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,864 KB
testcase_01 AC 40 ms
53,492 KB
testcase_02 AC 40 ms
52,468 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 43 ms
64,052 KB
testcase_14 AC 49 ms
70,560 KB
testcase_15 AC 46 ms
67,968 KB
testcase_16 AC 61 ms
84,596 KB
testcase_17 AC 49 ms
71,040 KB
testcase_18 AC 44 ms
67,316 KB
testcase_19 AC 44 ms
64,660 KB
testcase_20 AC 62 ms
87,252 KB
testcase_21 AC 46 ms
68,532 KB
testcase_22 AC 53 ms
78,040 KB
testcase_23 AC 36 ms
51,940 KB
testcase_24 WA -
testcase_25 AC 70 ms
95,632 KB
testcase_26 AC 80 ms
101,916 KB
testcase_27 AC 82 ms
102,228 KB
testcase_28 AC 80 ms
101,304 KB
testcase_29 AC 81 ms
101,008 KB
testcase_30 AC 82 ms
102,916 KB
testcase_31 AC 83 ms
101,764 KB
testcase_32 AC 80 ms
101,788 KB
testcase_33 AC 80 ms
102,832 KB
testcase_34 AC 80 ms
101,580 KB
testcase_35 AC 81 ms
100,828 KB
testcase_36 AC 37 ms
53,052 KB
testcase_37 AC 36 ms
52,560 KB
testcase_38 AC 37 ms
53,312 KB
testcase_39 AC 37 ms
53,996 KB
testcase_40 AC 36 ms
52,084 KB
testcase_41 AC 37 ms
53,160 KB
testcase_42 AC 36 ms
53,016 KB
testcase_43 AC 37 ms
52,336 KB
testcase_44 AC 36 ms
52,264 KB
testcase_45 AC 36 ms
53,308 KB
testcase_46 AC 52 ms
74,152 KB
testcase_47 AC 42 ms
63,372 KB
testcase_48 AC 43 ms
65,464 KB
testcase_49 AC 52 ms
74,892 KB
testcase_50 AC 51 ms
74,336 KB
testcase_51 AC 53 ms
75,008 KB
testcase_52 AC 49 ms
71,504 KB
testcase_53 AC 59 ms
79,128 KB
testcase_54 AC 44 ms
66,956 KB
testcase_55 AC 44 ms
64,688 KB
testcase_56 AC 42 ms
63,308 KB
testcase_57 AC 51 ms
72,576 KB
testcase_58 AC 42 ms
62,476 KB
testcase_59 AC 40 ms
60,888 KB
testcase_60 AC 46 ms
67,404 KB
testcase_61 AC 51 ms
73,304 KB
testcase_62 AC 47 ms
70,288 KB
testcase_63 AC 45 ms
66,512 KB
testcase_64 AC 53 ms
75,832 KB
testcase_65 AC 47 ms
68,696 KB
権限があれば一括ダウンロードができます

ソースコード

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