結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,624 KB
testcase_01 AC 30 ms
10,624 KB
testcase_02 AC 30 ms
10,752 KB
testcase_03 WA -
testcase_04 AC 32 ms
10,624 KB
testcase_05 AC 30 ms
10,752 KB
testcase_06 AC 29 ms
10,624 KB
testcase_07 WA -
testcase_08 AC 31 ms
10,624 KB
testcase_09 AC 30 ms
10,624 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 29 ms
10,752 KB
testcase_14 AC 31 ms
10,624 KB
testcase_15 AC 117 ms
14,520 KB
testcase_16 AC 116 ms
14,728 KB
testcase_17 WA -
testcase_18 AC 117 ms
14,604 KB
testcase_19 AC 118 ms
14,604 KB
testcase_20 AC 113 ms
14,600 KB
testcase_21 WA -
testcase_22 AC 145 ms
14,932 KB
testcase_23 AC 133 ms
14,732 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 280 ms
33,648 KB
testcase_27 AC 274 ms
33,648 KB
testcase_28 AC 277 ms
32,548 KB
testcase_29 AC 273 ms
33,524 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 126 ms
14,604 KB
testcase_33 AC 138 ms
14,728 KB
testcase_34 WA -
testcase_35 AC 125 ms
14,600 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 239 ms
27,536 KB
testcase_40 AC 268 ms
31,912 KB
testcase_41 AC 142 ms
15,868 KB
testcase_42 AC 159 ms
16,080 KB
testcase_43 WA -
testcase_44 AC 151 ms
16,080 KB
testcase_45 WA -
testcase_46 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
F = 0
S = 0
for i in range(n):
    if i % 2 == 0:
        F += a[i] - 1
    else:
        S += a[i] - 1
if n % 2 == 0:
    if F > S:
        print("First")
    else:
        print("Second")
else:
    if F - m > S:
        print("First")
    else:
        print("Second")
0