結果

問題 No.1506 Unbalanced Pocky Game
ユーザー nrktnrkt
提出日時 2021-05-17 18:36:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 762 bytes
コンパイル時間 174 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 105,440 KB
最終ジャッジ日時 2024-04-16 07:15:53
合計ジャッジ時間 6,242 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
54,656 KB
testcase_01 AC 45 ms
54,912 KB
testcase_02 AC 44 ms
54,144 KB
testcase_03 AC 50 ms
62,592 KB
testcase_04 AC 69 ms
84,096 KB
testcase_05 AC 74 ms
87,680 KB
testcase_06 AC 64 ms
77,952 KB
testcase_07 AC 61 ms
72,320 KB
testcase_08 AC 69 ms
77,312 KB
testcase_09 AC 74 ms
87,552 KB
testcase_10 AC 76 ms
90,112 KB
testcase_11 AC 59 ms
73,080 KB
testcase_12 AC 58 ms
71,808 KB
testcase_13 AC 54 ms
66,432 KB
testcase_14 AC 59 ms
73,216 KB
testcase_15 AC 57 ms
70,784 KB
testcase_16 AC 72 ms
88,296 KB
testcase_17 AC 60 ms
74,368 KB
testcase_18 AC 57 ms
69,504 KB
testcase_19 AC 55 ms
67,840 KB
testcase_20 AC 75 ms
90,880 KB
testcase_21 AC 57 ms
71,552 KB
testcase_22 AC 66 ms
79,872 KB
testcase_23 AC 45 ms
54,144 KB
testcase_24 AC 44 ms
54,400 KB
testcase_25 AC 84 ms
98,688 KB
testcase_26 AC 97 ms
104,960 KB
testcase_27 AC 99 ms
104,960 KB
testcase_28 AC 96 ms
105,440 KB
testcase_29 AC 98 ms
105,284 KB
testcase_30 AC 99 ms
105,004 KB
testcase_31 AC 100 ms
105,344 KB
testcase_32 AC 100 ms
104,832 KB
testcase_33 AC 97 ms
104,704 KB
testcase_34 AC 96 ms
104,704 KB
testcase_35 AC 96 ms
104,704 KB
testcase_36 AC 45 ms
54,784 KB
testcase_37 AC 45 ms
54,400 KB
testcase_38 AC 46 ms
54,656 KB
testcase_39 AC 44 ms
54,784 KB
testcase_40 AC 45 ms
54,912 KB
testcase_41 AC 46 ms
54,912 KB
testcase_42 AC 47 ms
54,400 KB
testcase_43 AC 46 ms
54,912 KB
testcase_44 AC 46 ms
54,784 KB
testcase_45 AC 46 ms
54,144 KB
testcase_46 AC 65 ms
76,288 KB
testcase_47 AC 54 ms
67,072 KB
testcase_48 AC 57 ms
68,480 KB
testcase_49 AC 67 ms
78,208 KB
testcase_50 AC 70 ms
76,288 KB
testcase_51 AC 66 ms
77,696 KB
testcase_52 AC 61 ms
74,624 KB
testcase_53 AC 71 ms
81,792 KB
testcase_54 AC 58 ms
69,248 KB
testcase_55 AC 55 ms
66,816 KB
testcase_56 AC 55 ms
67,072 KB
testcase_57 AC 64 ms
76,672 KB
testcase_58 AC 55 ms
65,920 KB
testcase_59 AC 53 ms
64,000 KB
testcase_60 AC 59 ms
70,272 KB
testcase_61 AC 65 ms
76,416 KB
testcase_62 AC 62 ms
73,344 KB
testcase_63 AC 67 ms
69,904 KB
testcase_64 AC 67 ms
78,080 KB
testcase_65 AC 60 ms
70,912 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 = False
for i in range(n):
    if not f:
        f = True
    else:
        if a[i] == 1:
            f = False
        else:
            f = True
if f:
    print("Alice")
else:
    print("Bob")
0