結果

問題 No.1506 Unbalanced Pocky Game
ユーザー nrktnrkt
提出日時 2021-05-17 18:45:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 729 bytes
コンパイル時間 200 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 105,600 KB
最終ジャッジ日時 2024-04-16 07:21:15
合計ジャッジ時間 6,058 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
54,528 KB
testcase_01 AC 45 ms
54,144 KB
testcase_02 AC 44 ms
54,208 KB
testcase_03 AC 52 ms
62,848 KB
testcase_04 AC 73 ms
84,480 KB
testcase_05 AC 70 ms
87,424 KB
testcase_06 AC 63 ms
77,568 KB
testcase_07 AC 57 ms
72,832 KB
testcase_08 AC 63 ms
77,824 KB
testcase_09 AC 71 ms
88,064 KB
testcase_10 AC 74 ms
90,752 KB
testcase_11 AC 57 ms
73,216 KB
testcase_12 AC 57 ms
71,552 KB
testcase_13 AC 52 ms
66,176 KB
testcase_14 AC 59 ms
72,832 KB
testcase_15 AC 60 ms
70,528 KB
testcase_16 AC 72 ms
88,448 KB
testcase_17 AC 58 ms
74,624 KB
testcase_18 AC 55 ms
69,248 KB
testcase_19 AC 53 ms
67,968 KB
testcase_20 AC 74 ms
90,496 KB
testcase_21 AC 57 ms
71,296 KB
testcase_22 AC 65 ms
79,872 KB
testcase_23 AC 45 ms
54,272 KB
testcase_24 AC 43 ms
54,784 KB
testcase_25 AC 83 ms
98,816 KB
testcase_26 AC 97 ms
104,808 KB
testcase_27 AC 96 ms
104,960 KB
testcase_28 AC 97 ms
104,960 KB
testcase_29 AC 98 ms
104,960 KB
testcase_30 AC 97 ms
105,600 KB
testcase_31 AC 98 ms
105,212 KB
testcase_32 AC 97 ms
104,868 KB
testcase_33 AC 93 ms
104,980 KB
testcase_34 AC 94 ms
104,948 KB
testcase_35 AC 97 ms
104,704 KB
testcase_36 AC 43 ms
54,656 KB
testcase_37 AC 43 ms
54,528 KB
testcase_38 AC 44 ms
54,784 KB
testcase_39 AC 44 ms
54,400 KB
testcase_40 AC 44 ms
54,656 KB
testcase_41 AC 43 ms
54,272 KB
testcase_42 AC 43 ms
54,528 KB
testcase_43 AC 45 ms
54,656 KB
testcase_44 AC 44 ms
54,528 KB
testcase_45 AC 45 ms
54,656 KB
testcase_46 AC 65 ms
77,184 KB
testcase_47 AC 53 ms
67,200 KB
testcase_48 AC 55 ms
69,120 KB
testcase_49 AC 68 ms
78,848 KB
testcase_50 AC 64 ms
76,800 KB
testcase_51 AC 68 ms
78,336 KB
testcase_52 AC 63 ms
74,880 KB
testcase_53 AC 69 ms
82,560 KB
testcase_54 AC 57 ms
69,632 KB
testcase_55 AC 55 ms
67,328 KB
testcase_56 AC 54 ms
67,072 KB
testcase_57 AC 65 ms
76,800 KB
testcase_58 AC 56 ms
66,816 KB
testcase_59 AC 53 ms
64,896 KB
testcase_60 AC 59 ms
71,680 KB
testcase_61 AC 63 ms
76,288 KB
testcase_62 AC 61 ms
73,472 KB
testcase_63 AC 57 ms
70,272 KB
testcase_64 AC 67 ms
78,720 KB
testcase_65 AC 59 ms
71,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
 
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