結果

問題 No.1506 Unbalanced Pocky Game
ユーザー titiatitia
提出日時 2021-05-15 02:01:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 492 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 24,376 KB
最終ジャッジ日時 2024-04-10 06:55:32
合計ジャッジ時間 6,390 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,752 KB
testcase_01 AC 30 ms
10,752 KB
testcase_02 AC 29 ms
10,752 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 39 ms
11,136 KB
testcase_14 AC 50 ms
11,904 KB
testcase_15 AC 46 ms
11,648 KB
testcase_16 WA -
testcase_17 AC 51 ms
11,904 KB
testcase_18 AC 43 ms
11,392 KB
testcase_19 WA -
testcase_20 AC 76 ms
13,216 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 93 ms
14,640 KB
testcase_26 AC 117 ms
22,932 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 115 ms
22,680 KB
testcase_30 AC 117 ms
24,196 KB
testcase_31 AC 116 ms
24,344 KB
testcase_32 WA -
testcase_33 AC 115 ms
22,912 KB
testcase_34 WA -
testcase_35 AC 114 ms
22,580 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 30 ms
10,752 KB
testcase_39 AC 30 ms
10,752 KB
testcase_40 AC 31 ms
10,752 KB
testcase_41 AC 30 ms
10,752 KB
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 AC 30 ms
10,752 KB
testcase_46 WA -
testcase_47 WA -
testcase_48 AC 43 ms
12,544 KB
testcase_49 AC 65 ms
15,592 KB
testcase_50 AC 61 ms
14,980 KB
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 AC 40 ms
12,032 KB
testcase_56 AC 40 ms
12,160 KB
testcase_57 AC 60 ms
15,748 KB
testcase_58 WA -
testcase_59 AC 35 ms
11,648 KB
testcase_60 AC 48 ms
13,500 KB
testcase_61 WA -
testcase_62 WA -
testcase_63 AC 48 ms
13,184 KB
testcase_64 WA -
testcase_65 AC 48 ms
13,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

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

LOSE=0

for a in A[:N-1]:
    if a==1:
        LOSE=1-LOSE
    else:
        LOSE=1

# print(LOSE)

if LOSE==0:
    if N%2==0:        
        if A[-1]==1:
            print("Alice")
        else:
            print("Bob")
    else:
        if A[-1]!=1:
            print("Alice")
        else:
            print("Bob")
        
else:
    if N%2==0:
        print("Alice")
    else:
        print("Bob")

0