結果

問題 No.1208 anti primenumber game
ユーザー chineristACchineristAC
提出日時 2020-08-30 15:14:28
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 434 bytes
コンパイル時間 364 ms
コンパイル使用メモリ 82,580 KB
実行使用メモリ 110,948 KB
最終ジャッジ日時 2024-04-27 08:05:49
合計ジャッジ時間 5,103 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,224 KB
testcase_01 AC 38 ms
53,820 KB
testcase_02 AC 38 ms
52,616 KB
testcase_03 AC 38 ms
53,752 KB
testcase_04 WA -
testcase_05 AC 38 ms
52,132 KB
testcase_06 AC 39 ms
53,548 KB
testcase_07 AC 38 ms
52,456 KB
testcase_08 AC 38 ms
52,448 KB
testcase_09 AC 39 ms
53,056 KB
testcase_10 AC 39 ms
52,180 KB
testcase_11 AC 38 ms
53,012 KB
testcase_12 AC 38 ms
53,168 KB
testcase_13 AC 38 ms
52,480 KB
testcase_14 AC 38 ms
53,436 KB
testcase_15 AC 77 ms
100,852 KB
testcase_16 AC 77 ms
100,244 KB
testcase_17 AC 77 ms
101,164 KB
testcase_18 AC 77 ms
100,304 KB
testcase_19 AC 76 ms
100,496 KB
testcase_20 AC 79 ms
100,984 KB
testcase_21 AC 80 ms
99,860 KB
testcase_22 AC 79 ms
99,204 KB
testcase_23 AC 78 ms
100,504 KB
testcase_24 AC 103 ms
104,052 KB
testcase_25 AC 105 ms
103,772 KB
testcase_26 AC 103 ms
101,404 KB
testcase_27 AC 104 ms
101,380 KB
testcase_28 AC 102 ms
101,400 KB
testcase_29 AC 102 ms
101,244 KB
testcase_30 AC 78 ms
101,760 KB
testcase_31 WA -
testcase_32 AC 78 ms
100,976 KB
testcase_33 AC 77 ms
100,704 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 69 ms
91,560 KB
testcase_37 AC 77 ms
99,688 KB
testcase_38 AC 98 ms
110,672 KB
testcase_39 AC 98 ms
110,948 KB
testcase_40 AC 104 ms
101,872 KB
testcase_41 WA -
testcase_42 AC 81 ms
101,352 KB
testcase_43 AC 80 ms
102,060 KB
testcase_44 AC 79 ms
101,260 KB
testcase_45 AC 81 ms
100,664 KB
testcase_46 AC 77 ms
95,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int,input().split())
A=list(map(int,input().split()))[::-1]

check=0
while A and A[-1]==1:
    A.pop()
    check+=1

if check%2==0:
    A=A[::-1]
    N=len(A)
    tmp=sum(A)-N+2*(1-M)*(2*A.count(1)-N)
    if tmp>0:
        print("First")
    else:
        print("Second")
else:
    A=A[::-1]
    N=len(A)
    tmp=(1-M)-(sum(A)-N+2*(1-M)*(2*A.count(1)-N))
    if tmp>0:
        print("First")
    else:
        print("Second")
0