結果

問題 No.1506 Unbalanced Pocky Game
ユーザー mkawa2mkawa2
提出日時 2021-05-14 22:59:22
言語 Python3
(3.10.1 + numpy 1.22.3 + scipy 1.8.0)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 936 bytes
コンパイル時間 62 ms
使用メモリ 18,804 KB
最終ジャッジ日時 2022-11-25 21:00:00
合計ジャッジ時間 4,838 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 15 ms
7,820 KB
testcase_01 AC 15 ms
7,920 KB
testcase_02 AC 16 ms
7,924 KB
testcase_03 AC 17 ms
8,008 KB
testcase_04 AC 46 ms
9,952 KB
testcase_05 AC 51 ms
10,228 KB
testcase_06 AC 37 ms
9,208 KB
testcase_07 AC 31 ms
8,856 KB
testcase_08 AC 37 ms
9,348 KB
testcase_09 AC 53 ms
10,260 KB
testcase_10 AC 54 ms
10,440 KB
testcase_11 AC 31 ms
8,752 KB
testcase_12 AC 29 ms
8,824 KB
testcase_13 AC 19 ms
8,380 KB
testcase_14 AC 24 ms
8,728 KB
testcase_15 AC 23 ms
8,700 KB
testcase_16 AC 37 ms
10,224 KB
testcase_17 AC 26 ms
8,956 KB
testcase_18 AC 22 ms
8,452 KB
testcase_19 AC 21 ms
8,512 KB
testcase_20 AC 39 ms
10,380 KB
testcase_21 AC 24 ms
8,812 KB
testcase_22 AC 30 ms
9,364 KB
testcase_23 AC 16 ms
7,812 KB
testcase_24 AC 15 ms
7,792 KB
testcase_25 AC 46 ms
10,892 KB
testcase_26 AC 65 ms
18,676 KB
testcase_27 AC 65 ms
18,760 KB
testcase_28 AC 64 ms
18,240 KB
testcase_29 AC 64 ms
18,304 KB
testcase_30 AC 66 ms
18,804 KB
testcase_31 AC 65 ms
18,780 KB
testcase_32 AC 64 ms
18,604 KB
testcase_33 AC 64 ms
18,268 KB
testcase_34 AC 63 ms
18,180 KB
testcase_35 AC 63 ms
18,264 KB
testcase_36 AC 15 ms
7,980 KB
testcase_37 AC 16 ms
7,800 KB
testcase_38 AC 16 ms
7,968 KB
testcase_39 AC 15 ms
7,788 KB
testcase_40 AC 16 ms
7,932 KB
testcase_41 AC 16 ms
7,920 KB
testcase_42 AC 16 ms
7,796 KB
testcase_43 AC 15 ms
7,980 KB
testcase_44 AC 15 ms
7,908 KB
testcase_45 AC 15 ms
7,880 KB
testcase_46 AC 33 ms
11,336 KB
testcase_47 AC 21 ms
8,948 KB
testcase_48 AC 23 ms
9,468 KB
testcase_49 AC 35 ms
12,148 KB
testcase_50 AC 33 ms
11,472 KB
testcase_51 AC 36 ms
12,008 KB
testcase_52 AC 32 ms
11,312 KB
testcase_53 AC 38 ms
12,660 KB
testcase_54 AC 24 ms
9,636 KB
testcase_55 AC 21 ms
8,896 KB
testcase_56 AC 21 ms
8,984 KB
testcase_57 AC 33 ms
11,604 KB
testcase_58 AC 21 ms
9,220 KB
testcase_59 AC 19 ms
8,512 KB
testcase_60 AC 26 ms
10,104 KB
testcase_61 AC 33 ms
11,648 KB
testcase_62 AC 29 ms
11,084 KB
testcase_63 AC 25 ms
9,792 KB
testcase_64 AC 35 ms
12,104 KB
testcase_65 AC 26 ms
10,184 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