結果

問題 No.2619 Sorted Nim
ユーザー ococonomy1ococonomy1
提出日時 2024-01-26 21:44:24
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,684 bytes
コンパイル時間 1,147 ms
コンパイル使用メモリ 117,628 KB
実行使用メモリ 13,440 KB
最終ジャッジ日時 2024-01-26 21:44:32
合計ジャッジ時間 7,695 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 63 ms
11,264 KB
testcase_05 AC 62 ms
11,136 KB
testcase_06 AC 80 ms
13,440 KB
testcase_07 WA -
testcase_08 AC 74 ms
12,800 KB
testcase_09 AC 2 ms
6,676 KB
testcase_10 AC 74 ms
12,672 KB
testcase_11 WA -
testcase_12 AC 71 ms
12,416 KB
testcase_13 WA -
testcase_14 AC 73 ms
12,672 KB
testcase_15 WA -
testcase_16 AC 77 ms
12,800 KB
testcase_17 WA -
testcase_18 AC 74 ms
12,800 KB
testcase_19 AC 60 ms
11,008 KB
testcase_20 AC 61 ms
11,008 KB
testcase_21 AC 82 ms
13,440 KB
testcase_22 AC 65 ms
11,520 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 76 ms
13,056 KB
testcase_26 WA -
testcase_27 AC 61 ms
11,008 KB
testcase_28 AC 81 ms
13,440 KB
testcase_29 AC 78 ms
13,056 KB
testcase_30 AC 70 ms
12,160 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 68 ms
11,904 KB
testcase_34 AC 61 ms
11,264 KB
testcase_35 AC 70 ms
12,160 KB
testcase_36 AC 74 ms
12,672 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 75 ms
12,800 KB
testcase_40 AC 65 ms
11,648 KB
testcase_41 WA -
testcase_42 AC 60 ms
11,008 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 AC 70 ms
12,032 KB
testcase_47 WA -
testcase_48 AC 2 ms
6,676 KB
testcase_49 WA -
testcase_50 WA -
testcase_51 AC 68 ms
11,776 KB
testcase_52 AC 2 ms
6,676 KB
testcase_53 AC 82 ms
13,440 KB
testcase_54 AC 65 ms
11,520 KB
testcase_55 WA -
testcase_56 WA -
testcase_57 WA -
testcase_58 WA -
testcase_59 WA -
testcase_60 AC 63 ms
11,264 KB
testcase_61 AC 66 ms
11,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// #pragma GCC target("avx2")
// #pragma GCC optimize("O3")
// #pragma GCC optimize("unroll-loops")
#include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <complex>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using pli = pair<ll,int>;
#define TEST cerr << "TEST" << endl
#define AMARI 998244353
// #define AMARI 1000000007
#define TIME_LIMIT 1980000
#define el '\n'
#define El '\n'

#define MULTI_TEST_CASE false
void solve(void) {
    //問題を見たらまず「この問題設定から言えること」をいっぱい言ってみる
    //一個解答に繋がりそうな解法が見えても、実装や細かい考察に時間がかかりそうなら別の方針やを考えてみる
    //特に添え字周りはそのままやると面倒&言い換えが有効なことが多いので書き始める前にじっくり考える
    int n;
    cin >> n;
    vector<int> a(n);
    ll sum = 0;
    map<int,int> cnt;
    for(int i = 0; i < n; i++){
        cin >> a[i];
        cnt[a[i]]++;
    }
    int ans = 0;
    for(map<int,int>::iterator it = cnt.begin(); it != cnt.end(); it++){
        if(it->second == 1)ans++;
    }
    cout << (!(ans % 2) ? "First" : "Second") << el;
    return;
}

void calc(void) {
    return;
}

signed main(void) {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    calc();
    int t = 1;
    if(MULTI_TEST_CASE) cin >> t;
    while(t--) {
        solve();
    }
    return 0;
}
0