結果

問題 No.1506 Unbalanced Pocky Game
ユーザー O2MTO2MT
提出日時 2021-05-15 15:45:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 516 ms
コンパイル使用メモリ 82,424 KB
実行使用メモリ 102,540 KB
最終ジャッジ日時 2024-04-14 06:32:47
合計ジャッジ時間 6,408 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
52,304 KB
testcase_01 AC 40 ms
53,068 KB
testcase_02 AC 38 ms
52,480 KB
testcase_03 AC 44 ms
61,224 KB
testcase_04 AC 65 ms
83,724 KB
testcase_05 AC 67 ms
86,556 KB
testcase_06 AC 60 ms
75,700 KB
testcase_07 AC 52 ms
71,564 KB
testcase_08 AC 57 ms
77,080 KB
testcase_09 AC 67 ms
85,796 KB
testcase_10 AC 69 ms
89,436 KB
testcase_11 AC 55 ms
71,988 KB
testcase_12 AC 53 ms
70,280 KB
testcase_13 AC 47 ms
63,088 KB
testcase_14 AC 51 ms
70,508 KB
testcase_15 AC 49 ms
68,440 KB
testcase_16 AC 64 ms
84,936 KB
testcase_17 AC 52 ms
72,412 KB
testcase_18 AC 49 ms
67,068 KB
testcase_19 AC 48 ms
65,192 KB
testcase_20 AC 66 ms
88,124 KB
testcase_21 AC 49 ms
68,240 KB
testcase_22 AC 60 ms
77,656 KB
testcase_23 AC 38 ms
52,620 KB
testcase_24 AC 39 ms
53,600 KB
testcase_25 AC 76 ms
95,500 KB
testcase_26 AC 86 ms
102,160 KB
testcase_27 AC 86 ms
101,388 KB
testcase_28 AC 84 ms
101,056 KB
testcase_29 AC 86 ms
101,568 KB
testcase_30 AC 85 ms
102,540 KB
testcase_31 AC 86 ms
101,656 KB
testcase_32 AC 86 ms
101,164 KB
testcase_33 AC 88 ms
101,728 KB
testcase_34 AC 85 ms
102,004 KB
testcase_35 AC 86 ms
102,120 KB
testcase_36 AC 39 ms
52,628 KB
testcase_37 AC 39 ms
52,684 KB
testcase_38 AC 39 ms
52,492 KB
testcase_39 AC 39 ms
52,348 KB
testcase_40 AC 38 ms
52,212 KB
testcase_41 AC 38 ms
52,500 KB
testcase_42 AC 39 ms
52,000 KB
testcase_43 AC 39 ms
53,488 KB
testcase_44 AC 40 ms
53,148 KB
testcase_45 AC 40 ms
52,756 KB
testcase_46 AC 55 ms
73,632 KB
testcase_47 AC 46 ms
63,548 KB
testcase_48 AC 47 ms
65,560 KB
testcase_49 AC 59 ms
75,856 KB
testcase_50 AC 57 ms
73,132 KB
testcase_51 AC 58 ms
76,296 KB
testcase_52 AC 54 ms
71,348 KB
testcase_53 AC 63 ms
80,532 KB
testcase_54 AC 47 ms
65,472 KB
testcase_55 AC 45 ms
63,072 KB
testcase_56 AC 46 ms
63,404 KB
testcase_57 AC 55 ms
73,500 KB
testcase_58 AC 45 ms
63,288 KB
testcase_59 AC 44 ms
61,420 KB
testcase_60 AC 50 ms
68,296 KB
testcase_61 AC 55 ms
72,496 KB
testcase_62 AC 53 ms
71,044 KB
testcase_63 AC 48 ms
66,912 KB
testcase_64 AC 58 ms
75,652 KB
testcase_65 AC 51 ms
68,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int,input().split()))
players = ['Alice', 'Bob']
idx = 0
for i in range(N-1,0,-1):
  if A[i] == 1:
    idx ^= 1
  else:
    break
print(players[idx])
0