結果

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

テストケース

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

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define int long long
#define REP(i,m,n) for(int i=(m);i<(n);i++)
#define rep(i,n) REP(i,0,n)
#define pb push_back
#define all(a) a.begin(),a.end()
#define rall(c) (c).rbegin(),(c).rend()
#define mp make_pair
#define endl '\n'
#define vec vector<ll>
#define mat vector<vector<ll> >
#define fi first
#define se second
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll,ll> pll;
typedef long double ld;
typedef complex<double> comp;
const ll inf=1e9+7;
const ll mod=1e9+7;
const int MAX=200010;


signed main(){
    ll n,m;cin>>n>>m;
    vector<ll>a(n);
    rep(i,n)cin>>a[i];
    bool f=0;
    ll ans=0;
    rep(i,n){
        if(i%2)ans-=a[i];
        else ans+=a[i];
    }
    if(n%2)ans-=m;
    if(ans>0)f=1;
    if(f){
        cout<<"First"<<endl;
    }else cout<<"Second"<<endl;
}
0