結果

問題 No.1506 Unbalanced Pocky Game
ユーザー ああいいああいい
提出日時 2022-03-15 22:42:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 315 bytes
コンパイル時間 465 ms
コンパイル使用メモリ 81,804 KB
実行使用メモリ 102,228 KB
最終ジャッジ日時 2023-10-23 21:27:54
合計ジャッジ時間 8,309 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,532 KB
testcase_01 WA -
testcase_02 AC 38 ms
53,532 KB
testcase_03 AC 41 ms
59,548 KB
testcase_04 WA -
testcase_05 AC 60 ms
84,676 KB
testcase_06 AC 53 ms
74,608 KB
testcase_07 AC 49 ms
70,452 KB
testcase_08 WA -
testcase_09 AC 61 ms
84,756 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 49 ms
69,468 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 48 ms
68,588 KB
testcase_16 AC 63 ms
84,724 KB
testcase_17 AC 49 ms
71,860 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 48 ms
69,468 KB
testcase_22 AC 54 ms
76,272 KB
testcase_23 AC 37 ms
53,532 KB
testcase_24 WA -
testcase_25 AC 70 ms
95,816 KB
testcase_26 AC 78 ms
102,132 KB
testcase_27 WA -
testcase_28 AC 79 ms
102,008 KB
testcase_29 AC 80 ms
102,060 KB
testcase_30 WA -
testcase_31 AC 80 ms
102,216 KB
testcase_32 AC 80 ms
102,132 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 37 ms
53,532 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 38 ms
53,532 KB
testcase_42 WA -
testcase_43 WA -
testcase_44 AC 38 ms
53,532 KB
testcase_45 AC 37 ms
53,532 KB
testcase_46 AC 51 ms
72,528 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 55 ms
76,112 KB
testcase_50 AC 53 ms
72,580 KB
testcase_51 AC 54 ms
76,028 KB
testcase_52 AC 51 ms
71,256 KB
testcase_53 WA -
testcase_54 WA -
testcase_55 AC 43 ms
63,188 KB
testcase_56 WA -
testcase_57 WA -
testcase_58 AC 42 ms
62,528 KB
testcase_59 AC 41 ms
61,596 KB
testcase_60 WA -
testcase_61 AC 51 ms
72,472 KB
testcase_62 WA -
testcase_63 AC 46 ms
67,516 KB
testcase_64 AC 54 ms
76,032 KB
testcase_65 AC 47 ms
68,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

right = N - 1
count = 0
while right >= 0 and A[right] == -1:
    right -= -1
    count += 1
if count == N:
    if N % 2 == 1:
        print('Alice')
    else:
        print('Bob')
else:
    if count % 2 == 1:
        print('Bob')
    else:
        print('Alice')
0