結果
問題 |
No.2282 Boxed Nim
|
ユーザー |
|
提出日時 | 2023-05-04 14:37:30 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 418 bytes |
コンパイル時間 | 2,022 ms |
コンパイル使用メモリ | 192,576 KB |
最終ジャッジ日時 | 2025-02-12 16:53:14 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
#include <bits/stdc++.h> #define PII std::pair<int, int> #define all(x) x.begin(), x.end() using ll = long long; void solve() { int n; std::cin >> n; int ans = 0; for (int i = 0; i < n; i++) { int x; std::cin >> x; ans += !x; } std::cout << (ans % 2 ? "First\n" : "Second\n"); } int main() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); int T = 1; while(T--) { solve(); } return 0; }