結果

問題 No.1506 Unbalanced Pocky Game
ユーザー ああいいああいい
提出日時 2022-03-15 22:43:06
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 313 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 81,816 KB
実行使用メモリ 102,064 KB
最終ジャッジ日時 2023-10-23 21:28:53
合計ジャッジ時間 6,034 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,352 KB
testcase_01 AC 33 ms
53,352 KB
testcase_02 AC 33 ms
53,352 KB
testcase_03 AC 42 ms
61,828 KB
testcase_04 AC 57 ms
82,480 KB
testcase_05 AC 60 ms
84,916 KB
testcase_06 AC 52 ms
74,848 KB
testcase_07 AC 47 ms
70,692 KB
testcase_08 AC 51 ms
74,892 KB
testcase_09 AC 61 ms
87,044 KB
testcase_10 AC 64 ms
89,524 KB
testcase_11 AC 48 ms
70,712 KB
testcase_12 AC 49 ms
69,708 KB
testcase_13 AC 43 ms
63,208 KB
testcase_14 AC 49 ms
70,308 KB
testcase_15 AC 47 ms
68,436 KB
testcase_16 AC 61 ms
84,572 KB
testcase_17 AC 50 ms
71,708 KB
testcase_18 AC 43 ms
65,572 KB
testcase_19 AC 40 ms
64,260 KB
testcase_20 AC 61 ms
87,068 KB
testcase_21 AC 46 ms
69,316 KB
testcase_22 AC 51 ms
76,120 KB
testcase_23 AC 34 ms
53,376 KB
testcase_24 AC 34 ms
53,376 KB
testcase_25 AC 67 ms
95,664 KB
testcase_26 AC 80 ms
101,980 KB
testcase_27 AC 80 ms
102,064 KB
testcase_28 AC 78 ms
101,856 KB
testcase_29 AC 79 ms
101,908 KB
testcase_30 AC 80 ms
102,064 KB
testcase_31 AC 79 ms
102,064 KB
testcase_32 AC 79 ms
101,980 KB
testcase_33 AC 79 ms
101,976 KB
testcase_34 AC 78 ms
101,840 KB
testcase_35 AC 82 ms
101,844 KB
testcase_36 AC 35 ms
53,376 KB
testcase_37 AC 35 ms
53,376 KB
testcase_38 AC 34 ms
53,376 KB
testcase_39 AC 34 ms
53,376 KB
testcase_40 AC 33 ms
53,376 KB
testcase_41 AC 33 ms
53,376 KB
testcase_42 AC 35 ms
53,376 KB
testcase_43 AC 36 ms
53,376 KB
testcase_44 AC 34 ms
53,376 KB
testcase_45 AC 34 ms
53,376 KB
testcase_46 AC 51 ms
72,376 KB
testcase_47 AC 40 ms
63,020 KB
testcase_48 AC 41 ms
64,036 KB
testcase_49 AC 53 ms
75,960 KB
testcase_50 AC 50 ms
72,428 KB
testcase_51 AC 50 ms
75,876 KB
testcase_52 AC 48 ms
71,104 KB
testcase_53 AC 56 ms
79,140 KB
testcase_54 AC 44 ms
66,712 KB
testcase_55 AC 42 ms
63,036 KB
testcase_56 AC 39 ms
63,024 KB
testcase_57 AC 49 ms
72,392 KB
testcase_58 AC 40 ms
62,376 KB
testcase_59 AC 39 ms
61,444 KB
testcase_60 AC 43 ms
68,092 KB
testcase_61 AC 48 ms
72,320 KB
testcase_62 AC 47 ms
69,984 KB
testcase_63 AC 43 ms
67,364 KB
testcase_64 AC 52 ms
75,880 KB
testcase_65 AC 45 ms
68,124 KB
権限があれば一括ダウンロードができます

ソースコード

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