結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
weaken
|
| 提出日時 | 2020-10-14 03:57:49 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 59 ms / 5,000 ms |
| コード長 | 464 bytes |
| コンパイル時間 | 2,063 ms |
| コンパイル使用メモリ | 199,892 KB |
| 最終ジャッジ日時 | 2025-01-15 07:12:07 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include <bits/stdc++.h>
#define fastIO (cin.tie(0), cout.tie(0), ios::sync_with_stdio(false))
using namespace std;
int main() {
fastIO;
int n;
cin >> n;
map<int, int> mp;
for (int i = 0; i < n; ++i) {
int num;
cin >> num;
if (mp.find(num) != mp.end()) {
mp[num]++;
} else {
mp[num] = 1;
}
}
int cnt = 0;
for (const auto key : mp) {
if (key.second == 1)
cnt++;
}
cout << cnt << '\n';
return 0;
}
weaken