結果

問題 No.182 新規性の虜
ユーザー KKT89KKT89
提出日時 2019-12-23 03:43:03
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 53 ms / 5,000 ms
コード長 355 bytes
コンパイル時間 1,304 ms
コンパイル使用メモリ 86,528 KB
実行使用メモリ 8,100 KB
最終ジャッジ日時 2023-10-13 05:12:43
合計ジャッジ時間 3,496 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,368 KB
testcase_01 AC 2 ms
4,368 KB
testcase_02 AC 2 ms
4,368 KB
testcase_03 AC 1 ms
4,372 KB
testcase_04 AC 2 ms
4,372 KB
testcase_05 AC 1 ms
4,372 KB
testcase_06 AC 2 ms
4,372 KB
testcase_07 AC 2 ms
4,368 KB
testcase_08 AC 25 ms
5,732 KB
testcase_09 AC 53 ms
7,268 KB
testcase_10 AC 43 ms
6,828 KB
testcase_11 AC 30 ms
6,180 KB
testcase_12 AC 12 ms
4,620 KB
testcase_13 AC 2 ms
4,372 KB
testcase_14 AC 2 ms
4,368 KB
testcase_15 AC 2 ms
4,368 KB
testcase_16 AC 2 ms
4,372 KB
testcase_17 AC 2 ms
4,368 KB
testcase_18 AC 18 ms
4,368 KB
testcase_19 AC 14 ms
4,368 KB
testcase_20 AC 10 ms
4,368 KB
testcase_21 AC 20 ms
4,372 KB
testcase_22 AC 11 ms
4,368 KB
testcase_23 AC 2 ms
4,372 KB
testcase_24 AC 37 ms
8,100 KB
testcase_25 AC 7 ms
4,368 KB
testcase_26 AC 6 ms
4,372 KB
testcase_27 AC 2 ms
4,372 KB
evil01.txt AC 39 ms
8,248 KB
evil02.txt AC 39 ms
7,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
using namespace std;
typedef long long int ll;

int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	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 p:mp){
		if(p.second==1)ans++;
	}
	cout << ans << endl;
}
0