{"type":"rich","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","blog_url":"https://blog.systemjp.net/","author_name":"shikaku","height":"190","version":"1.0","url":"https://blog.systemjp.net/entry/2017/06/26/182605","published":"2017-06-26 18:26:05","categories":["cpp"],"image_url":null,"author_url":"https://blog.hatena.ne.jp/shikaku/","title":"C++\u3067\u306e\u4e2d\u592e\u5024\u306e\u6c42\u3081\u65b9","width":"100%","blog_title":"shikaku's blog","description":"vector\u4f7f\u3046\u8981\u7d20\u306e\u5024\u3067\u30bd\u30fc\u30c8\u3057\u3066\u4e2d\u592e\u306e\u8981\u7d20\u3092\u8fd4\u3059 \u8981\u7d20\u306e\u6570\u304c\u5076\u6570\u3060\u3063\u305f\u3089\u4e2d\u592e2\u3064\u306e\u5e73\u5747\u3092\u8fd4\u3059 loat median(vector<float> v) { float size = v.size(); vector<float> _v(v.size()); copy(v.begin(), v.end(), back_inserter(_v)); float tmp; for (int i = 0; i < size - 1; i++){ for (int j = i + 1; j < size; j++) { if (_v[i] > _v[j]){ tmp = _v[i]; _v[i] =\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.systemjp.net%2Fentry%2F2017%2F06%2F26%2F182605\" title=\"C++\u3067\u306e\u4e2d\u592e\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>"}