結果

問題 No.1208 anti primenumber game
ユーザー chineristACchineristAC
提出日時 2020-08-30 15:09:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 408 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 82,128 KB
実行使用メモリ 111,208 KB
最終ジャッジ日時 2024-04-27 08:00:25
合計ジャッジ時間 5,169 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
52,864 KB
testcase_01 AC 42 ms
53,704 KB
testcase_02 AC 39 ms
53,852 KB
testcase_03 AC 40 ms
52,572 KB
testcase_04 WA -
testcase_05 AC 39 ms
53,552 KB
testcase_06 WA -
testcase_07 AC 39 ms
52,308 KB
testcase_08 AC 39 ms
53,360 KB
testcase_09 AC 39 ms
52,328 KB
testcase_10 AC 39 ms
52,208 KB
testcase_11 AC 39 ms
52,192 KB
testcase_12 AC 39 ms
52,092 KB
testcase_13 AC 38 ms
52,488 KB
testcase_14 AC 39 ms
52,860 KB
testcase_15 AC 79 ms
101,540 KB
testcase_16 WA -
testcase_17 AC 79 ms
101,508 KB
testcase_18 AC 80 ms
100,500 KB
testcase_19 WA -
testcase_20 AC 80 ms
100,144 KB
testcase_21 AC 79 ms
101,184 KB
testcase_22 AC 82 ms
99,820 KB
testcase_23 AC 80 ms
99,212 KB
testcase_24 AC 109 ms
103,920 KB
testcase_25 AC 106 ms
103,936 KB
testcase_26 AC 106 ms
101,388 KB
testcase_27 AC 108 ms
101,364 KB
testcase_28 AC 105 ms
101,748 KB
testcase_29 AC 105 ms
101,640 KB
testcase_30 AC 80 ms
100,684 KB
testcase_31 WA -
testcase_32 AC 78 ms
99,608 KB
testcase_33 AC 80 ms
100,764 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 70 ms
91,640 KB
testcase_37 AC 78 ms
99,332 KB
testcase_38 AC 98 ms
111,208 KB
testcase_39 AC 98 ms
110,788 KB
testcase_40 AC 106 ms
101,868 KB
testcase_41 WA -
testcase_42 AC 83 ms
101,640 KB
testcase_43 AC 83 ms
100,640 KB
testcase_44 AC 83 ms
100,996 KB
testcase_45 AC 82 ms
100,624 KB
testcase_46 AC 77 ms
95,428 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]
    tmp=sum(A)-N+2*(1-M)*(2*A.count(1)-N)
    if tmp>0:
        print("First")
    else:
        print("Second")
else:
    A=A[::-1]
    tmp=(1-M)-(sum(A)-N+2*(1-M)*(2*A.count(1)-N))
    if tmp>0:
        print("First")
    else:
        print("Second")
0