結果

問題 No.1506 Unbalanced Pocky Game
ユーザー otsunekootsuneko
提出日時 2021-05-14 23:50:23
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 457 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 82,444 KB
実行使用メモリ 103,956 KB
最終ジャッジ日時 2024-04-10 04:46:17
合計ジャッジ時間 5,340 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,020 KB
testcase_01 AC 34 ms
52,364 KB
testcase_02 AC 34 ms
52,752 KB
testcase_03 WA -
testcase_04 AC 56 ms
83,120 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 55 ms
76,756 KB
testcase_09 WA -
testcase_10 AC 61 ms
89,544 KB
testcase_11 AC 46 ms
70,780 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 45 ms
70,660 KB
testcase_15 AC 44 ms
67,804 KB
testcase_16 WA -
testcase_17 AC 47 ms
72,052 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 62 ms
88,484 KB
testcase_21 AC 45 ms
69,160 KB
testcase_22 WA -
testcase_23 AC 35 ms
52,800 KB
testcase_24 AC 35 ms
53,088 KB
testcase_25 AC 72 ms
97,628 KB
testcase_26 AC 78 ms
103,284 KB
testcase_27 AC 78 ms
103,124 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 78 ms
102,704 KB
testcase_32 AC 79 ms
102,872 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 35 ms
52,280 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 34 ms
51,884 KB
testcase_42 AC 35 ms
52,140 KB
testcase_43 AC 35 ms
51,936 KB
testcase_44 WA -
testcase_45 WA -
testcase_46 AC 51 ms
73,576 KB
testcase_47 AC 41 ms
63,504 KB
testcase_48 AC 44 ms
65,712 KB
testcase_49 AC 54 ms
75,284 KB
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 AC 44 ms
63,280 KB
testcase_56 WA -
testcase_57 AC 51 ms
75,488 KB
testcase_58 AC 41 ms
62,892 KB
testcase_59 WA -
testcase_60 AC 45 ms
68,624 KB
testcase_61 WA -
testcase_62 WA -
testcase_63 WA -
testcase_64 WA -
testcase_65 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

if N == 1:
    print("Alice")
elif N == 2:
    if A[1] == 1:
        print("Bob")
    else:
        print("Alice")
else:
    l = N-2
    cnt_one = A[2:].count(1)
    if A[1] == 1:
        if (l+cnt_one)%2:
            print("Alice")
        else:
            print("Bob")
    elif A[1] > 1:
        if (l+cnt_one)%2:
            print("Alice")
        else:
            print("Bob")
0