結果

問題 No.2282 Boxed Nim
ユーザー srjywrdnprkt
提出日時 2023-04-30 22:47:33
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 463 bytes
コンパイル時間 947 ms
コンパイル使用メモリ 103,604 KB
最終ジャッジ日時 2025-02-12 16:13:12
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <cmath>
#include <map>
#include <set>
#include <iomanip>
#include <queue>
#include <algorithm>
#include <numeric>
#include <deque>
#include <complex>
#include <cassert>

using namespace std;
using ll = long long;

int main(){

    int N, cnt=0, A;
    cin >> N;
    for (int i=0; i<N; i++){
        cin >> A;
        if (A == 0) cnt++;
    }
    cout << (cnt % 2 == 1 ? "First" : "Second") << endl;

    return 0;
}
0