<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moistx</author_name>
  <author_url>https://blog.hatena.ne.jp/moistx/</author_url>
  <blog_title>Logfiles</blog_title>
  <blog_url>https://logfiles.hatenablog.com/</blog_url>
  <categories>
    <anon>SRM</anon>
  </categories>
  <description>解法 ソートして累積和とった上で全探索。O(N^2) 元の配列に番号付けがされているが、全ての番号の数だけ最小のフロアを集めるので番号付けに意味がなく、いきなりソートして良い。 #include &lt;bits/stdc++.h&gt; using namespace std; #define INF (1&lt;&lt;28) class BuildingHeights { public: int minimum( vector &lt;int&gt; heights ) { int N = heights.size(); sort(heights.begin(), heights.end()); vector&lt;int&gt; s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140712%2F1405181392&quot; title=&quot;SRM624 Div1Easy BuildingHeights - Logfiles&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-07-12 01:09:52</published>
  <title>SRM624 Div1Easy BuildingHeights</title>
  <type>rich</type>
  <url>https://logfiles.hatenablog.com/entry/20140712/1405181392</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
