結果
問題 | No.182 新規性の虜 |
ユーザー |
![]() |
提出日時 | 2015-04-17 16:38:51 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 99 ms / 5,000 ms |
コード長 | 457 bytes |
コンパイル時間 | 1,033 ms |
コンパイル使用メモリ | 68,932 KB |
実行使用メモリ | 8,320 KB |
最終ジャッジ日時 | 2024-12-26 19:01:19 |
合計ジャッジ時間 | 3,509 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <cstdio> #include <vector> #include <iostream> #include <cassert> #include <cstring> #include <map> using namespace std; typedef long long ll; const int MN = 100100; int a[MN]; map<int, int> mp; int main() { int n; cin >> n; for (int i = 0; i < n; i++) { cin >> a[i]; mp[a[i]]++; } int res = 0; for (int i = 0; i < n; i++) { if (mp[a[i]] == 1) res++; } cout << res << endl; return 0; }