結果

問題 No.182 新規性の虜
ユーザー ry0u_ydry0u_yd
提出日時 2015-08-28 18:08:01
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 72 ms / 5,000 ms
コード長 669 bytes
コンパイル時間 608 ms
コンパイル使用メモリ 73,616 KB
実行使用メモリ 8,064 KB
最終ジャッジ日時 2024-06-08 03:15:24
合計ジャッジ時間 2,238 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,816 KB
testcase_01 AC 2 ms
6,816 KB
testcase_02 AC 2 ms
6,944 KB
testcase_03 AC 2 ms
6,944 KB
testcase_04 AC 2 ms
6,940 KB
testcase_05 AC 2 ms
6,940 KB
testcase_06 AC 1 ms
6,940 KB
testcase_07 AC 2 ms
6,940 KB
testcase_08 AC 42 ms
6,940 KB
testcase_09 AC 72 ms
7,296 KB
testcase_10 AC 63 ms
6,940 KB
testcase_11 AC 50 ms
6,940 KB
testcase_12 AC 20 ms
6,940 KB
testcase_13 AC 2 ms
6,944 KB
testcase_14 AC 2 ms
6,940 KB
testcase_15 AC 1 ms
6,940 KB
testcase_16 AC 2 ms
6,940 KB
testcase_17 AC 2 ms
6,944 KB
testcase_18 AC 31 ms
6,940 KB
testcase_19 AC 23 ms
6,940 KB
testcase_20 AC 15 ms
6,944 KB
testcase_21 AC 35 ms
6,940 KB
testcase_22 AC 19 ms
6,940 KB
testcase_23 AC 2 ms
6,940 KB
testcase_24 AC 57 ms
8,064 KB
testcase_25 AC 16 ms
6,940 KB
testcase_26 AC 9 ms
6,944 KB
testcase_27 AC 2 ms
6,940 KB
evil01.txt AC 68 ms
8,064 KB
evil02.txt AC 67 ms
8,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <algorithm>
#include <sstream>
#include <map>
#include <set>

#define REP(i,k,n) for(int i=k;i<n;i++)
#define rep(i,n) for(int i=0;i<n;i++)
#define INF 1<<30
#define pb push_back
#define mp make_pair

using namespace std;
typedef long long ll;
typedef pair<int,int> P;

int main() {
    int n;
    cin >> n;

    map<int,int> m;
    rep(i,n) {
        int a;
        cin >> a;

        m[a]++;
    }

    int ans = 0;
    map<int,int>::iterator ite;
    for(ite = m.begin(); ite != m.end(); ite++) {
        if(ite->second == 1) ans++;
    }

    cout << ans << endl;

    return 0;
}
0