結果

問題 No.1208 anti primenumber game
ユーザー cpcznksutbeoacpcznksutbeoa
提出日時 2020-08-30 15:44:10
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 1,746 ms
コンパイル使用メモリ 172,508 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-27 09:11:27
合計ジャッジ時間 5,090 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 2 ms
6,944 KB
testcase_03 AC 2 ms
6,940 KB
testcase_04 AC 2 ms
6,940 KB
testcase_05 AC 2 ms
6,944 KB
testcase_06 AC 2 ms
6,940 KB
testcase_07 AC 2 ms
6,940 KB
testcase_08 AC 2 ms
6,940 KB
testcase_09 AC 2 ms
6,940 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 1 ms
6,940 KB
testcase_13 AC 2 ms
6,944 KB
testcase_14 AC 2 ms
6,944 KB
testcase_15 AC 35 ms
6,944 KB
testcase_16 AC 34 ms
6,944 KB
testcase_17 AC 34 ms
6,940 KB
testcase_18 AC 34 ms
6,940 KB
testcase_19 AC 34 ms
6,944 KB
testcase_20 AC 34 ms
6,944 KB
testcase_21 WA -
testcase_22 AC 38 ms
6,940 KB
testcase_23 AC 36 ms
6,944 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 117 ms
6,944 KB
testcase_27 AC 114 ms
6,944 KB
testcase_28 AC 116 ms
6,940 KB
testcase_29 AC 117 ms
6,944 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 35 ms
6,940 KB
testcase_33 AC 35 ms
6,940 KB
testcase_34 WA -
testcase_35 AC 34 ms
6,944 KB
testcase_36 AC 27 ms
6,944 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 93 ms
6,940 KB
testcase_40 AC 112 ms
6,944 KB
testcase_41 AC 42 ms
6,940 KB
testcase_42 AC 43 ms
6,940 KB
testcase_43 WA -
testcase_44 AC 42 ms
6,940 KB
testcase_45 WA -
testcase_46 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
    long long N,M;cin>>N>>M;vector<long long>A(N);for(int i=0;i<N;i++)cin>>A[i];
    sort(A.begin(),A.end());reverse(A.begin(),A.end());
    long long count=0,ans=0;
    for(int i=0;i<N;i++){
        if(i%2==0)count+=A[i]-M;
        else ans+=A[i]-M;
    }
    cout<<(count>ans? "First":"Second")<<endl;
}
0