結果

問題 No.1506 Unbalanced Pocky Game
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2022-02-05 20:46:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 303 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 21,700 KB
最終ジャッジ日時 2023-09-02 06:52:24
合計ジャッジ時間 7,475 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,076 KB
testcase_01 AC 15 ms
8,208 KB
testcase_02 AC 15 ms
8,024 KB
testcase_03 AC 19 ms
8,284 KB
testcase_04 AC 51 ms
10,308 KB
testcase_05 AC 56 ms
10,492 KB
testcase_06 AC 40 ms
9,540 KB
testcase_07 AC 32 ms
8,960 KB
testcase_08 AC 41 ms
9,580 KB
testcase_09 AC 59 ms
10,812 KB
testcase_10 AC 60 ms
10,768 KB
testcase_11 AC 34 ms
8,980 KB
testcase_12 AC 32 ms
8,992 KB
testcase_13 AC 21 ms
8,604 KB
testcase_14 AC 27 ms
8,988 KB
testcase_15 AC 25 ms
8,952 KB
testcase_16 AC 40 ms
10,756 KB
testcase_17 AC 27 ms
9,384 KB
testcase_18 AC 22 ms
8,780 KB
testcase_19 AC 21 ms
8,716 KB
testcase_20 AC 40 ms
10,708 KB
testcase_21 AC 25 ms
9,064 KB
testcase_22 AC 32 ms
9,796 KB
testcase_23 AC 15 ms
8,228 KB
testcase_24 AC 15 ms
7,844 KB
testcase_25 AC 49 ms
11,308 KB
testcase_26 AC 70 ms
21,452 KB
testcase_27 AC 70 ms
21,700 KB
testcase_28 AC 69 ms
21,140 KB
testcase_29 AC 69 ms
21,108 KB
testcase_30 AC 70 ms
21,604 KB
testcase_31 AC 70 ms
21,612 KB
testcase_32 AC 71 ms
21,460 KB
testcase_33 AC 68 ms
21,528 KB
testcase_34 AC 68 ms
21,052 KB
testcase_35 AC 68 ms
21,044 KB
testcase_36 AC 15 ms
8,108 KB
testcase_37 AC 16 ms
8,156 KB
testcase_38 AC 14 ms
8,096 KB
testcase_39 AC 15 ms
8,200 KB
testcase_40 AC 14 ms
8,148 KB
testcase_41 AC 15 ms
8,248 KB
testcase_42 AC 15 ms
8,104 KB
testcase_43 AC 15 ms
8,108 KB
testcase_44 AC 15 ms
8,216 KB
testcase_45 AC 15 ms
8,088 KB
testcase_46 AC 34 ms
12,344 KB
testcase_47 AC 21 ms
9,684 KB
testcase_48 AC 23 ms
9,964 KB
testcase_49 AC 36 ms
13,672 KB
testcase_50 AC 34 ms
12,400 KB
testcase_51 AC 36 ms
13,304 KB
testcase_52 AC 31 ms
12,220 KB
testcase_53 AC 41 ms
14,472 KB
testcase_54 AC 26 ms
10,612 KB
testcase_55 AC 22 ms
9,620 KB
testcase_56 AC 21 ms
9,580 KB
testcase_57 AC 34 ms
12,392 KB
testcase_58 AC 21 ms
9,612 KB
testcase_59 AC 18 ms
8,748 KB
testcase_60 AC 27 ms
10,520 KB
testcase_61 AC 34 ms
12,504 KB
testcase_62 AC 31 ms
11,792 KB
testcase_63 AC 26 ms
10,692 KB
testcase_64 AC 37 ms
12,756 KB
testcase_65 AC 27 ms
10,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int,input().split()))
if N == 1:
    print('Alice')
    exit()
    
for i in range(N):
    if A[-1-i] != 1:
        if i%2 == 0:
            print('Alice')
        else:
            print('Bob')
        exit()
        
if N%2 == 0:
    print('Bob')
else:
    print('Alice')
0