結果

問題 No.1208 anti primenumber game
ユーザー cpcznksutbeoacpcznksutbeoa
提出日時 2020-08-30 17:55:58
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 393 bytes
コンパイル時間 1,532 ms
コンパイル使用メモリ 169,032 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-27 12:44:14
合計ジャッジ時間 2,870 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
    int N,M,B;cin>>N>>M>>B;
    if(B==1){cout<<"Second"<<endl;return 0;}
    vector<int>A(N);long long count=B-1,ans=1-M;bool a=true;
    for(int i=1;i<N;i++){
        cin>>A[i];
        if(A[i]==1)a=!a;
        if(a){count+=A[i]-1;ans+=1-M;}
        else{count+=1-M;ans+=A[i]-1;}
    }
    cout<<(count>ans? "First":"Second")<<endl;
}
0