結果
| 問題 | No.1208 anti primenumber game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-30 17:55:58 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 393 bytes |
| 記録 | |
| コンパイル時間 | 1,780 ms |
| コンパイル使用メモリ | 168,208 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-15 14:43:18 |
| 合計ジャッジ時間 | 3,467 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 36 WA * 8 |
ソースコード
#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;
}