結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
158b
|
| 提出日時 | 2015-06-08 22:16:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 61 ms / 5,000 ms |
| コード長 | 550 bytes |
| コンパイル時間 | 868 ms |
| コンパイル使用メモリ | 72,512 KB |
| 実行使用メモリ | 8,064 KB |
| 最終ジャッジ日時 | 2024-12-26 19:18:04 |
| 合計ジャッジ時間 | 2,607 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <climits>
#include <vector>
#include <numeric>
#include <map>
//#define __int32 long long
using namespace std;
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int n;
int ans = 0;
int in;
map<int, int> mp;
cin >> n;
for(int i=0; i<n; i++){
cin >> in;
mp[in] ++;
}
for(auto i: mp){
//for(map<int, int>::iterator i=mp.begin(); i!=mp.end(); i++){
if(i.second == 1){
ans ++;
}
}
cout << ans << endl;
return 0;
}
158b