結果
問題 | No.182 新規性の虜 |
ユーザー |
![]() |
提出日時 | 2019-12-09 20:42:58 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 90 ms / 5,000 ms |
コード長 | 322 bytes |
コンパイル時間 | 896 ms |
コンパイル使用メモリ | 76,548 KB |
最終ジャッジ日時 | 2025-01-08 10:17:12 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <iostream> #include <map> using namespace std; int main() { int n; cin >> n; map<int, int> mp; for (int i=0; i<n; i++) { int t; cin >> t; mp[t]+=1; } int cnt=0; for (auto itr=mp.begin(); itr!=mp.end(); itr++) { if (itr->second==1) cnt++; } cout << cnt << endl; return 0; }