結果
| 問題 |
No.2282 Boxed Nim
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-29 08:56:28 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 23 ms / 2,000 ms |
| コード長 | 780 bytes |
| コンパイル時間 | 1,740 ms |
| コンパイル使用メモリ | 171,304 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-18 07:49:52 |
| 合計ジャッジ時間 | 2,876 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
// #include "atcoder/all"
#include <bits/stdc++.h>
using ll = long long;
const int MOD1000000007 = 1000000007;
const int MOD998244353 = 998244353;
const double PI = 3.14159265358979323846264338327950288;
void solve();
int main()
{
std::ios_base::sync_with_stdio(false);
// std::cin.tie(0);
#ifdef LOCAL
freopen("input.txt", "r", stdin);
#endif
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
solve();
return 0;
}
void solve()
{
int n;
scanf("%d", &n);
std::vector<int> a(n);
int ans = 0;
for (int i = 0; i < n; i++)
scanf("%d", &a[i]);
sort(a.begin(), a.end());
int c = std::count(a.begin(), a.end(), 0);
if (c % 2)
printf("First\n");
else
printf("Second\n");
}