結果

問題 No.1506 Unbalanced Pocky Game
ユーザー 👑 H20H20
提出日時 2021-05-15 01:33:26
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 435 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 82,224 KB
実行使用メモリ 107,592 KB
最終ジャッジ日時 2024-04-10 06:36:17
合計ジャッジ時間 6,175 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 42 ms
53,572 KB
testcase_02 AC 41 ms
53,964 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 51 ms
69,132 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 60 ms
80,572 KB
testcase_18 WA -
testcase_19 AC 53 ms
70,740 KB
testcase_20 AC 86 ms
102,204 KB
testcase_21 AC 57 ms
75,712 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 92 ms
107,592 KB
testcase_26 AC 99 ms
106,884 KB
testcase_27 AC 101 ms
106,808 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 97 ms
106,692 KB
testcase_32 AC 101 ms
106,660 KB
testcase_33 WA -
testcase_34 AC 99 ms
106,756 KB
testcase_35 WA -
testcase_36 AC 39 ms
55,200 KB
testcase_37 AC 39 ms
53,724 KB
testcase_38 WA -
testcase_39 AC 40 ms
55,484 KB
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 AC 39 ms
54,352 KB
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 AC 64 ms
82,872 KB
testcase_51 WA -
testcase_52 WA -
testcase_53 AC 70 ms
87,876 KB
testcase_54 AC 54 ms
71,740 KB
testcase_55 AC 54 ms
69,568 KB
testcase_56 AC 53 ms
69,516 KB
testcase_57 AC 64 ms
83,060 KB
testcase_58 WA -
testcase_59 AC 50 ms
65,368 KB
testcase_60 AC 59 ms
74,352 KB
testcase_61 WA -
testcase_62 AC 60 ms
78,424 KB
testcase_63 AC 57 ms
73,068 KB
testcase_64 AC 68 ms
84,668 KB
testcase_65 AC 58 ms
75,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
N = int(input())
A = list(map(int, input().split()))
D = collections.deque(A)
aliceWin = True 
while len(D) and D[0]==1:
    D.popleft()
    aliceWin = not aliceWin
if len(D)==0:
    if aliceWin:
        print('Alice')
    else:
        print('Bob')
aliceWin = True 
A = list(D)
for i in reversed(range(len(A))):
    if A[i]==1:
        aliceWin = not aliceWin
if aliceWin:
    print('Alice')
else:
    print('Bob')
0