結果
| 問題 |
No.1208 anti primenumber game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-30 17:14:41 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 334 bytes |
| コンパイル時間 | 1,707 ms |
| コンパイル使用メモリ | 167,756 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-15 13:17:12 |
| 合計ジャッジ時間 | 3,891 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 37 WA * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int N,M;cin>>N>>M;vector<int>A(N);long long count=0,ans=0;bool a=true;
for(int i=0;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;
}