結果

問題 No.1506 Unbalanced Pocky Game
ユーザー mkawa2mkawa2
提出日時 2021-05-14 22:59:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 936 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,720 KB
最終ジャッジ日時 2024-04-10 02:16:25
合計ジャッジ時間 5,213 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,624 KB
testcase_01 AC 29 ms
10,624 KB
testcase_02 AC 31 ms
10,624 KB
testcase_03 AC 33 ms
10,752 KB
testcase_04 AC 69 ms
12,928 KB
testcase_05 AC 74 ms
13,228 KB
testcase_06 AC 55 ms
12,236 KB
testcase_07 AC 50 ms
11,904 KB
testcase_08 AC 57 ms
12,264 KB
testcase_09 AC 75 ms
13,404 KB
testcase_10 AC 75 ms
13,428 KB
testcase_11 AC 48 ms
11,848 KB
testcase_12 AC 47 ms
11,648 KB
testcase_13 AC 34 ms
11,392 KB
testcase_14 AC 40 ms
11,904 KB
testcase_15 AC 39 ms
11,632 KB
testcase_16 AC 56 ms
13,256 KB
testcase_17 AC 42 ms
11,904 KB
testcase_18 AC 36 ms
11,392 KB
testcase_19 AC 37 ms
11,392 KB
testcase_20 AC 57 ms
13,416 KB
testcase_21 AC 41 ms
11,648 KB
testcase_22 AC 46 ms
12,456 KB
testcase_23 AC 28 ms
10,752 KB
testcase_24 AC 28 ms
10,624 KB
testcase_25 AC 66 ms
14,096 KB
testcase_26 AC 85 ms
21,616 KB
testcase_27 AC 84 ms
21,708 KB
testcase_28 AC 83 ms
21,192 KB
testcase_29 AC 85 ms
21,260 KB
testcase_30 AC 89 ms
21,584 KB
testcase_31 AC 87 ms
21,720 KB
testcase_32 AC 86 ms
21,472 KB
testcase_33 AC 84 ms
21,472 KB
testcase_34 AC 83 ms
21,308 KB
testcase_35 AC 85 ms
21,308 KB
testcase_36 AC 29 ms
10,752 KB
testcase_37 AC 29 ms
10,752 KB
testcase_38 AC 29 ms
10,752 KB
testcase_39 AC 29 ms
10,752 KB
testcase_40 AC 30 ms
10,752 KB
testcase_41 AC 29 ms
10,624 KB
testcase_42 AC 29 ms
10,752 KB
testcase_43 AC 29 ms
10,752 KB
testcase_44 AC 29 ms
10,752 KB
testcase_45 AC 29 ms
10,752 KB
testcase_46 AC 48 ms
14,552 KB
testcase_47 AC 35 ms
12,032 KB
testcase_48 AC 37 ms
12,408 KB
testcase_49 AC 52 ms
15,172 KB
testcase_50 AC 49 ms
14,568 KB
testcase_51 AC 51 ms
14,936 KB
testcase_52 AC 47 ms
14,268 KB
testcase_53 AC 56 ms
15,936 KB
testcase_54 AC 40 ms
12,544 KB
testcase_55 AC 35 ms
12,032 KB
testcase_56 AC 35 ms
12,032 KB
testcase_57 AC 48 ms
14,404 KB
testcase_58 AC 35 ms
12,032 KB
testcase_59 AC 32 ms
11,392 KB
testcase_60 AC 41 ms
12,908 KB
testcase_61 AC 50 ms
14,568 KB
testcase_62 AC 44 ms
14,060 KB
testcase_63 AC 41 ms
12,800 KB
testcase_64 AC 51 ms
14,948 KB
testcase_65 AC 42 ms
13,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10**6)
int1 = lambda x: int(x)-1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.buffer.readline())
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def LI1(): return list(map(int1, sys.stdin.buffer.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]
def BI(): return sys.stdin.buffer.readline().rstrip()
def SI(): return sys.stdin.buffer.readline().rstrip().decode()
# dij = [(0, 1), (-1, 0), (0, -1), (1, 0)]
# dij = [(0, 1), (-1, 0), (0, -1), (1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)]
dij = [(0, 1), (1, 0), (1, 1), (1, -1)]
inf = 10**16
md = 998244353
# md = 10**9+7

n=II()
aa=LI()
aa.reverse()
for i,a in enumerate(aa):
    if a>1:
        if i&1:print("Bob")
        else:print("Alice")
        break
else:
    if n&1:print("Alice")
    else:print("Bob")
0