結果
問題 | No.2044 Infinite Nim |
ユーザー |
|
提出日時 | 2022-08-24 08:43:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 45 ms / 2,000 ms |
コード長 | 225 bytes |
コンパイル時間 | 1,728 ms |
コンパイル使用メモリ | 165,336 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 18:51:03 |
合計ジャッジ時間 | 4,158 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 34 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int n, v, ans = 0; cin >> n; while(n--){ cin >> v; ans ^= (v == -1 ? 1 << 30 : v); } cout << (ans ? "First" : "Second") << endl; }