結果

問題 No.1506 Unbalanced Pocky Game
ユーザー nrktnrkt
提出日時 2021-05-17 17:43:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 732 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 102,528 KB
最終ジャッジ日時 2024-04-16 06:32:52
合計ジャッジ時間 7,258 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
54,400 KB
testcase_01 AC 45 ms
54,400 KB
testcase_02 AC 47 ms
54,528 KB
testcase_03 AC 53 ms
61,824 KB
testcase_04 WA -
testcase_05 AC 70 ms
86,400 KB
testcase_06 AC 62 ms
76,160 KB
testcase_07 AC 59 ms
71,552 KB
testcase_08 WA -
testcase_09 AC 70 ms
86,656 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 56 ms
70,400 KB
testcase_13 AC 51 ms
64,896 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 71 ms
86,528 KB
testcase_17 WA -
testcase_18 AC 54 ms
67,968 KB
testcase_19 AC 53 ms
66,560 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 64 ms
78,208 KB
testcase_23 AC 47 ms
54,400 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 89 ms
102,144 KB
testcase_27 WA -
testcase_28 AC 91 ms
101,596 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 89 ms
101,888 KB
testcase_36 AC 47 ms
54,144 KB
testcase_37 WA -
testcase_38 AC 46 ms
54,400 KB
testcase_39 WA -
testcase_40 AC 46 ms
54,144 KB
testcase_41 WA -
testcase_42 AC 46 ms
54,272 KB
testcase_43 WA -
testcase_44 AC 45 ms
54,016 KB
testcase_45 AC 46 ms
54,400 KB
testcase_46 AC 65 ms
74,752 KB
testcase_47 WA -
testcase_48 AC 55 ms
66,176 KB
testcase_49 AC 65 ms
76,752 KB
testcase_50 WA -
testcase_51 AC 63 ms
76,544 KB
testcase_52 AC 59 ms
73,088 KB
testcase_53 AC 69 ms
80,256 KB
testcase_54 WA -
testcase_55 WA -
testcase_56 AC 53 ms
65,024 KB
testcase_57 AC 64 ms
74,368 KB
testcase_58 AC 53 ms
64,640 KB
testcase_59 AC 50 ms
62,464 KB
testcase_60 WA -
testcase_61 AC 63 ms
74,496 KB
testcase_62 AC 59 ms
71,424 KB
testcase_63 AC 59 ms
68,096 KB
testcase_64 AC 65 ms
76,672 KB
testcase_65 AC 57 ms
69,248 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()
c = a.count(1)
if n % 2:
    if c % 2:
        print("Alice")
    else:
        print("Bob")
else:
    if c % 2:
        print("Bob")
    else:
        print("Alice")
0