{"author_name":"moistx","url":"https://logfiles.hatenablog.com/entry/20140712/1405181392","version":"1.0","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140712%2F1405181392\" title=\"SRM624 Div1Easy BuildingHeights - Logfiles\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","published":"2014-07-12 01:09:52","type":"rich","author_url":"https://blog.hatena.ne.jp/moistx/","blog_title":"Logfiles","title":"SRM624 Div1Easy BuildingHeights","blog_url":"https://logfiles.hatenablog.com/","provider_url":"https://hatena.blog","height":"190","width":"100%","categories":["SRM"],"description":"\u89e3\u6cd5 \u30bd\u30fc\u30c8\u3057\u3066\u7d2f\u7a4d\u548c\u3068\u3063\u305f\u4e0a\u3067\u5168\u63a2\u7d22\u3002O(N^2) \u5143\u306e\u914d\u5217\u306b\u756a\u53f7\u4ed8\u3051\u304c\u3055\u308c\u3066\u3044\u308b\u304c\u3001\u5168\u3066\u306e\u756a\u53f7\u306e\u6570\u3060\u3051\u6700\u5c0f\u306e\u30d5\u30ed\u30a2\u3092\u96c6\u3081\u308b\u306e\u3067\u756a\u53f7\u4ed8\u3051\u306b\u610f\u5473\u304c\u306a\u304f\u3001\u3044\u304d\u306a\u308a\u30bd\u30fc\u30c8\u3057\u3066\u826f\u3044\u3002 #include <bits/stdc++.h> using namespace std; #define INF (1<<28) class BuildingHeights { public: int minimum( vector <int> heights ) { int N = heights.size(); sort(heights.begin(), heights.end()); vector<int> s\u2026"}