結果
| 問題 |
No.1208 anti primenumber game
|
| コンテスト | |
| ユーザー |
simasima_71
|
| 提出日時 | 2020-10-16 21:13:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 257 bytes |
| コンパイル時間 | 504 ms |
| コンパイル使用メモリ | 64,672 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-20 21:07:52 |
| 合計ジャッジ時間 | 2,378 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 WA * 13 |
ソースコード
#include <iostream>
using namespace std;
using l = int64_t;
int main() {l n,m;cin>>n>>m;for(l i=0;i<n;i++){l a;cin >> a;if(a-1){if(i%2-a%2)cout <<"Second"<< endl;else cout<<"First"<<endl;return 0;}}if(n%2-m==1)cout<<"First"<<endl;else cout<<"Second"<<endl;}
simasima_71