結果

問題 No.1506 Unbalanced Pocky Game
ユーザー da_abda_ab
提出日時 2021-05-14 23:10:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 427 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 24,452 KB
最終ジャッジ日時 2024-04-10 02:52:58
合計ジャッジ時間 6,137 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,752 KB
testcase_01 AC 30 ms
10,752 KB
testcase_02 AC 30 ms
10,752 KB
testcase_03 WA -
testcase_04 AC 70 ms
12,916 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 59 ms
12,160 KB
testcase_09 WA -
testcase_10 AC 80 ms
13,420 KB
testcase_11 AC 51 ms
11,756 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 50 ms
11,852 KB
testcase_15 AC 47 ms
11,776 KB
testcase_16 AC 77 ms
13,252 KB
testcase_17 AC 54 ms
12,160 KB
testcase_18 AC 44 ms
11,520 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 49 ms
11,776 KB
testcase_22 AC 63 ms
12,368 KB
testcase_23 WA -
testcase_24 AC 30 ms
10,752 KB
testcase_25 AC 97 ms
14,724 KB
testcase_26 AC 120 ms
24,072 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 120 ms
23,944 KB
testcase_30 WA -
testcase_31 AC 121 ms
24,340 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 116 ms
23,728 KB
testcase_35 AC 118 ms
23,724 KB
testcase_36 AC 31 ms
10,752 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 30 ms
10,752 KB
testcase_41 AC 29 ms
10,752 KB
testcase_42 WA -
testcase_43 WA -
testcase_44 AC 30 ms
10,752 KB
testcase_45 WA -
testcase_46 AC 61 ms
14,952 KB
testcase_47 AC 40 ms
12,288 KB
testcase_48 WA -
testcase_49 AC 66 ms
16,160 KB
testcase_50 WA -
testcase_51 WA -
testcase_52 AC 58 ms
15,404 KB
testcase_53 WA -
testcase_54 WA -
testcase_55 WA -
testcase_56 AC 40 ms
12,280 KB
testcase_57 AC 61 ms
15,836 KB
testcase_58 WA -
testcase_59 AC 35 ms
11,520 KB
testcase_60 AC 48 ms
13,484 KB
testcase_61 AC 59 ms
15,232 KB
testcase_62 WA -
testcase_63 WA -
testcase_64 AC 65 ms
16,104 KB
testcase_65 AC 49 ms
13,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#1506 Unbalanced Pocky Game

n=int(input())
A=list(map(int,input().split()))

cntCont=0
isReverse=False
for el in A:
    if el==1:
        cntCont+=1
    else:
        if cntCont>1 and cntCont%2==0:
            isReverse=not isReverse
        cntCont=0

if A[-1]!=1:
    if not isReverse:
        print('Alice')
    else:
        print('Bob')
else:
    if not isReverse:
        print('Bob')
    else:
        print('Alice')


0