結果

問題 No.1506 Unbalanced Pocky Game
ユーザー nasubi24nasubi24
提出日時 2021-05-14 22:16:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 286 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 82,344 KB
実行使用メモリ 102,584 KB
最終ジャッジ日時 2024-04-10 00:38:39
合計ジャッジ時間 5,454 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 41 ms
60,180 KB
testcase_04 AC 57 ms
82,420 KB
testcase_05 AC 63 ms
85,272 KB
testcase_06 AC 51 ms
74,940 KB
testcase_07 AC 47 ms
70,200 KB
testcase_08 AC 51 ms
75,808 KB
testcase_09 AC 60 ms
86,252 KB
testcase_10 AC 60 ms
88,976 KB
testcase_11 AC 46 ms
70,832 KB
testcase_12 AC 45 ms
69,580 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 49 ms
71,936 KB
testcase_18 AC 46 ms
65,504 KB
testcase_19 AC 44 ms
65,436 KB
testcase_20 AC 63 ms
88,692 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 35 ms
52,076 KB
testcase_24 AC 37 ms
52,496 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 79 ms
100,820 KB
testcase_30 WA -
testcase_31 AC 78 ms
101,664 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 76 ms
100,544 KB
testcase_36 AC 34 ms
52,308 KB
testcase_37 WA -
testcase_38 AC 36 ms
52,836 KB
testcase_39 AC 37 ms
52,520 KB
testcase_40 AC 37 ms
53,496 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 AC 33 ms
52,824 KB
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 AC 41 ms
64,320 KB
testcase_48 AC 42 ms
64,500 KB
testcase_49 AC 53 ms
74,968 KB
testcase_50 AC 52 ms
73,240 KB
testcase_51 WA -
testcase_52 WA -
testcase_53 AC 56 ms
79,100 KB
testcase_54 WA -
testcase_55 WA -
testcase_56 WA -
testcase_57 WA -
testcase_58 AC 41 ms
63,080 KB
testcase_59 WA -
testcase_60 AC 46 ms
66,724 KB
testcase_61 WA -
testcase_62 AC 48 ms
69,668 KB
testcase_63 WA -
testcase_64 WA -
testcase_65 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
cnt=n
for i in range(n):
    if a[i]!=1:
        cnt=i+1
        break
num=n-cnt
if cnt%2==0:
    if num==0:
        print("Bob")
    else:
        print("Alice")
else:
    if num!=0:
        print("Bob")
    else:
        print("Alice")
0