結果

問題 No.2282 Boxed Nim
ユーザー inkyaman
提出日時 2024-04-07 23:41:57
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 565 bytes
コンパイル時間 1,123 ms
コンパイル使用メモリ 111,316 KB
最終ジャッジ日時 2025-02-20 22:51:47
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _USE_MATH_DEFINES
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <queue>
#include <math.h>
#include <cmath>
#include <stack>
#include <map>
#include <set>
#include <numeric>
#include <iomanip>
#include <climits>
#include <functional>
#include <cassert>
#include <tuple>
using namespace std;
using ll = long long;

int N;

int main() {

    cin >> N;
    int cnt = 0;
    for(int i = 1; i <= N; ++i) {
        int a; cin >> a;
        if(a == 0) cnt++;
    }

    cout << (cnt%2 == 1 ? "First" : "Second") << endl;

}

0