{"image_url":null,"description":"#include <algorithm> #include <unordered_map> // \u96c6\u8a08\u3059\u308b std::unordered_map<unsigned int, size_t> hash; for(const auto &x : data){ if(hash.find(x) != hash.end()){ ++hash.at(x); }else{ hash[x] = 1; } } // \u6700\u5927\u5024\u306e\u8981\u7d20\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u308a\u51fa\u3059 // \u5225\u9014\u6bd4\u8f03\u95a2\u6570\u3092\u66f8\u304d\u305f\u304f\u306a\u304b\u3063\u305f\u306e\u3067\u30e9\u30e0\u30c0\u5f0f\u306b\u3057\u305f // (\u30e9\u30e0\u30c0\u5f0f\u306e\u5f15\u6570\u3067auto\u304c\u4f7f\u3048\u308b\u306e\u306fC++14\u304b\u3089) auto max_iterator2 = \u2026","height":"190","type":"rich","author_name":"shikaku","categories":["cpp"],"url":"https://blog.systemjp.net/entry/2017/06/27/112757","version":"1.0","blog_url":"https://blog.systemjp.net/","author_url":"https://blog.hatena.ne.jp/shikaku/","provider_url":"https://hatena.blog","published":"2017-06-27 11:27:57","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.systemjp.net%2Fentry%2F2017%2F06%2F27%2F112757\" title=\"C++\u3067\u6700\u983b\u5024\u306e\u6c42\u3081\u65b9 - shikaku&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"shikaku's blog","title":"C++\u3067\u6700\u983b\u5024\u306e\u6c42\u3081\u65b9","provider_name":"Hatena Blog","width":"100%"}