結果

問題 No.1506 Unbalanced Pocky Game
ユーザー lie_of_lillielie_of_lillie
提出日時 2021-06-22 21:44:52
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 704 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 10,992 KB
実行使用メモリ 22,312 KB
最終ジャッジ日時 2023-09-05 22:24:08
合計ジャッジ時間 7,705 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,672 KB
testcase_01 AC 19 ms
8,680 KB
testcase_02 AC 20 ms
8,736 KB
testcase_03 AC 23 ms
8,944 KB
testcase_04 AC 58 ms
10,964 KB
testcase_05 AC 64 ms
11,216 KB
testcase_06 AC 46 ms
10,132 KB
testcase_07 AC 39 ms
9,604 KB
testcase_08 AC 48 ms
10,116 KB
testcase_09 AC 67 ms
11,716 KB
testcase_10 AC 67 ms
11,308 KB
testcase_11 AC 40 ms
9,692 KB
testcase_12 AC 38 ms
9,548 KB
testcase_13 AC 29 ms
9,200 KB
testcase_14 AC 39 ms
9,824 KB
testcase_15 AC 36 ms
9,508 KB
testcase_16 AC 66 ms
11,276 KB
testcase_17 AC 41 ms
10,032 KB
testcase_18 AC 34 ms
9,560 KB
testcase_19 AC 32 ms
9,416 KB
testcase_20 AC 67 ms
11,320 KB
testcase_21 AC 38 ms
9,656 KB
testcase_22 AC 50 ms
10,312 KB
testcase_23 AC 20 ms
8,732 KB
testcase_24 AC 20 ms
8,664 KB
testcase_25 AC 83 ms
12,484 KB
testcase_26 AC 103 ms
21,176 KB
testcase_27 AC 103 ms
22,216 KB
testcase_28 AC 99 ms
21,828 KB
testcase_29 AC 100 ms
20,736 KB
testcase_30 AC 103 ms
22,208 KB
testcase_31 AC 104 ms
22,312 KB
testcase_32 AC 103 ms
21,108 KB
testcase_33 AC 105 ms
20,980 KB
testcase_34 AC 101 ms
20,684 KB
testcase_35 AC 101 ms
20,720 KB
testcase_36 AC 20 ms
8,740 KB
testcase_37 AC 20 ms
8,684 KB
testcase_38 AC 20 ms
8,836 KB
testcase_39 AC 20 ms
8,744 KB
testcase_40 AC 20 ms
8,860 KB
testcase_41 AC 19 ms
8,864 KB
testcase_42 AC 19 ms
8,744 KB
testcase_43 AC 20 ms
8,868 KB
testcase_44 AC 20 ms
8,860 KB
testcase_45 AC 19 ms
8,676 KB
testcase_46 AC 48 ms
12,980 KB
testcase_47 AC 29 ms
10,340 KB
testcase_48 AC 32 ms
10,484 KB
testcase_49 AC 54 ms
14,092 KB
testcase_50 AC 49 ms
13,404 KB
testcase_51 AC 53 ms
13,480 KB
testcase_52 AC 46 ms
13,352 KB
testcase_53 AC 58 ms
14,304 KB
testcase_54 AC 35 ms
10,836 KB
testcase_55 AC 30 ms
10,160 KB
testcase_56 AC 29 ms
10,280 KB
testcase_57 AC 50 ms
13,724 KB
testcase_58 AC 30 ms
10,324 KB
testcase_59 AC 26 ms
9,496 KB
testcase_60 AC 37 ms
11,248 KB
testcase_61 AC 49 ms
13,176 KB
testcase_62 AC 44 ms
12,660 KB
testcase_63 AC 36 ms
11,232 KB
testcase_64 AC 53 ms
13,628 KB
testcase_65 AC 37 ms
11,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import math
from bisect import bisect_right as br
from bisect import bisect_left as bl
sys.setrecursionlimit(2147483647)
from heapq import heappush, heappop,heappushpop
from collections import defaultdict
from itertools import accumulate, chain
from collections import Counter
from collections import deque
from operator import itemgetter
from itertools import permutations
mod = 10**9 + 7
inf = float('inf')
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))

n = I()
a = LI()
f = True
for i in range(1, n):
    if a[i] == 1:
        f = not f
    else:
        if not f:
            f = True
if f:
    print("Alice")
else:
    print("Bob")
0