結果

問題 No.182 新規性の虜
ユーザー r2en_r2en_
提出日時 2017-07-09 09:12:37
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 61 ms / 5,000 ms
コード長 347 bytes
コンパイル時間 626 ms
コンパイル使用メモリ 79,928 KB
実行使用メモリ 8,016 KB
最終ジャッジ日時 2023-08-27 15:40:41
合計ジャッジ時間 2,623 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 37 ms
5,960 KB
testcase_09 AC 61 ms
7,388 KB
testcase_10 AC 53 ms
6,828 KB
testcase_11 AC 45 ms
6,364 KB
testcase_12 AC 18 ms
4,644 KB
testcase_13 AC 2 ms
4,380 KB
testcase_14 AC 2 ms
4,380 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 AC 1 ms
4,380 KB
testcase_17 AC 2 ms
4,380 KB
testcase_18 AC 27 ms
4,380 KB
testcase_19 AC 21 ms
4,380 KB
testcase_20 AC 14 ms
4,380 KB
testcase_21 AC 33 ms
4,376 KB
testcase_22 AC 16 ms
4,380 KB
testcase_23 AC 2 ms
4,376 KB
testcase_24 AC 50 ms
8,016 KB
testcase_25 AC 14 ms
4,380 KB
testcase_26 AC 8 ms
4,380 KB
testcase_27 AC 2 ms
4,380 KB
evil01.txt AC 59 ms
8,072 KB
evil02.txt AC 60 ms
8,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
using namespace std;
#define rep(i,n) for(int i = 0; i < (n); i++)

int main(){
    int n;
    cin >> n;
    map<int, int>m;
    rep(i,n){ int a; cin >> a; m[a]++;}
    cout << count_if(begin(m), end(m), [](auto const& p) { return p.second == 1; }) << endl;
    return 0;
}
0