結果
| 問題 |
No.2282 Boxed Nim
|
| コンテスト | |
| ユーザー |
rgnerdplayer
|
| 提出日時 | 2023-05-03 15:34:43 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 14 ms / 2,000 ms |
| コード長 | 521 bytes |
| コンパイル時間 | 1,904 ms |
| コンパイル使用メモリ | 194,008 KB |
| 最終ジャッジ日時 | 2025-02-12 16:38:32 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
int main() {
cin.tie(nullptr)->sync_with_stdio(false);
#ifdef LOCAL
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
auto solve = [&]() {
int n;
cin >> n;
vector<int> a(n);
for (int i = 0; i < n; i++) {
cin >> a[i];
}
cout << (count(a.begin(), a.end(), 0) % 2 == 1 ? "First" : "Second") << '\n';
};
solve();
return 0;
}
rgnerdplayer