結果

問題 No.182 新規性の虜
ユーザー saio4016saio4016
提出日時 2019-03-07 23:52:46
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 744 bytes
コンパイル時間 1,646 ms
コンパイル使用メモリ 169,892 KB
実行使用メモリ 8,052 KB
最終ジャッジ日時 2023-09-05 19:30:48
合計ジャッジ時間 3,613 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 41 ms
5,764 KB
testcase_09 AC 78 ms
7,416 KB
testcase_10 AC 66 ms
6,828 KB
testcase_11 AC 50 ms
6,176 KB
testcase_12 AC 20 ms
4,620 KB
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 2 ms
4,376 KB
testcase_15 AC 2 ms
4,376 KB
testcase_16 AC 2 ms
4,376 KB
testcase_17 AC 1 ms
4,380 KB
testcase_18 AC 29 ms
4,376 KB
testcase_19 AC 22 ms
4,380 KB
testcase_20 AC 15 ms
4,376 KB
testcase_21 AC 34 ms
4,380 KB
testcase_22 AC 17 ms
4,380 KB
testcase_23 AC 1 ms
4,376 KB
testcase_24 AC 55 ms
8,052 KB
testcase_25 AC 15 ms
4,376 KB
testcase_26 AC 9 ms
4,376 KB
testcase_27 AC 2 ms
4,380 KB
evil01.txt AC 65 ms
8,180 KB
evil02.txt AC 65 ms
8,044 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define endl "\n"
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define rrep(i, n) for(int i = ((int)(n)-1); i >= 0; i--)
#define all(x) (x).begin(),(x).end()

using namespace std;
using ll = long long;

typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int,int> P;
 
const int INF = 1e9;
//const ll INF = 1e18;
const double EPS = 1e-10;
const int MOD = 1e9+7;
const double PI = acos(-1.0);

int main()
{
	int n;
	cin >> n;
	map<int,int> mp;
	for(int i = 0; i < n; i++){
		int a; cin >> a;
		mp[a]++;
	}
	int ans = 0;
	for(auto x: mp){
		if(x.second == 1) ans++;
	}
	cout << ans << endl;
    return 0;
}
0