結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
ldsyb
|
| 提出日時 | 2016-02-27 14:39:19 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 5,000 ms |
| コード長 | 362 bytes |
| コンパイル時間 | 1,511 ms |
| コンパイル使用メモリ | 73,600 KB |
| 実行使用メモリ | 8,392 KB |
| 最終ジャッジ日時 | 2024-12-27 02:05:52 |
| 合計ジャッジ時間 | 3,380 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include <iostream>
#include <map>
#include <algorithm>
using namespace std;
int main(){
int ans = 0,n;
cin >> n;
int a[n];
for(int i = 0;i < n;i++) cin >> a[i];
stable_sort(a,a + n);
map<int,int> m;
for(int i = 0;i < n;i++) m[a[i]]++;
for(auto itr = m.begin();itr != m.end();itr++) if(itr->second == 1) ans++;
cout << ans << endl;
}
ldsyb