結果
問題 | No.2282 Boxed Nim |
ユーザー |
|
提出日時 | 2024-01-08 18:17:21 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 45 ms / 2,000 ms |
コード長 | 242 bytes |
コンパイル時間 | 1,724 ms |
コンパイル使用メモリ | 166,632 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-27 19:38:29 |
合計ジャッジ時間 | 3,247 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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;}