結果

問題 No.1208 anti primenumber game
ユーザー titiatitia
提出日時 2020-08-30 15:07:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 319 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 33,852 KB
最終ジャッジ日時 2024-04-27 07:59:16
合計ジャッジ時間 6,948 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,752 KB
testcase_01 AC 29 ms
10,752 KB
testcase_02 AC 30 ms
10,752 KB
testcase_03 AC 33 ms
10,752 KB
testcase_04 AC 31 ms
10,752 KB
testcase_05 AC 31 ms
10,752 KB
testcase_06 AC 34 ms
10,752 KB
testcase_07 AC 32 ms
10,752 KB
testcase_08 AC 32 ms
10,752 KB
testcase_09 AC 30 ms
10,752 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 29 ms
10,752 KB
testcase_13 AC 30 ms
10,752 KB
testcase_14 AC 29 ms
10,624 KB
testcase_15 AC 70 ms
14,628 KB
testcase_16 AC 69 ms
14,628 KB
testcase_17 AC 69 ms
14,756 KB
testcase_18 AC 69 ms
14,624 KB
testcase_19 AC 69 ms
14,756 KB
testcase_20 AC 69 ms
14,628 KB
testcase_21 WA -
testcase_22 AC 143 ms
14,936 KB
testcase_23 AC 107 ms
14,628 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 290 ms
33,632 KB
testcase_27 AC 286 ms
33,636 KB
testcase_28 AC 296 ms
32,540 KB
testcase_29 AC 293 ms
33,512 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 73 ms
14,624 KB
testcase_33 AC 128 ms
14,752 KB
testcase_34 WA -
testcase_35 AC 130 ms
14,752 KB
testcase_36 AC 108 ms
13,400 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 229 ms
27,656 KB
testcase_40 AC 288 ms
31,912 KB
testcase_41 AC 97 ms
15,868 KB
testcase_42 AC 155 ms
16,188 KB
testcase_43 WA -
testcase_44 AC 133 ms
16,068 KB
testcase_45 WA -
testcase_46 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N,M=map(int,input().split())
A=list(map(int,input().split()))

A.sort(reverse=True)

S=0
G=0
for i in range(N):
    if A[i]==1:
        break
    if i%2==0:
        S+=A[i]-1
    else:
        G+=A[i]-1

if N%2==1:
    S-=M-1

if S>G:
    print("First")
else:
    print("Second")
0