結果
問題 |
No.1208 anti primenumber game
|
ユーザー |
![]() |
提出日時 | 2020-10-16 21:12:18 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 257 bytes |
コンパイル時間 | 523 ms |
コンパイル使用メモリ | 63,360 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 21:07:49 |
合計ジャッジ時間 | 3,264 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 WA * 12 |
ソースコード
#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){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;}