結果
| 問題 | No.2282 Boxed Nim |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-01-08 18:17:21 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 27 ms / 2,000 ms |
| + 496µs | |
| コード長 | 242 bytes |
| 記録 | |
| コンパイル時間 | 1,868 ms |
| コンパイル使用メモリ | 179,312 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-09-05 08:25:41 |
| 合計ジャッジ時間 | 2,834 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int n; cin >> n;
int x = 0;
while (n--) {
int a; cin >> a;
x ^= (a == 0 ? 1 : 0);
}
cout << (x == 0 ? "Second" : "First") << '\n';
return 0;
}