結果
| 問題 |
No.2282 Boxed Nim
|
| コンテスト | |
| ユーザー |
yukster714
|
| 提出日時 | 2023-04-28 21:38:50 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 2,000 ms |
| コード長 | 316 bytes |
| コンパイル時間 | 1,714 ms |
| コンパイル使用メモリ | 165,980 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 20:37:39 |
| 合計ジャッジ時間 | 2,460 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0;i<n;i++)
int main() {
int n; cin>>n;
int m=0;
rep(i,n){
int a; cin >> a;
if(a>0)m++;
}
string ans;
if((n+m)%2 == 1) ans = "First";
else ans = "Second";
cout << ans << endl;
return 0;
}
yukster714