<?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>UVa</anon>
  </categories>
  <description>解法 ソートして、O(N) 程度の貪欲。反省 入力で [ max(0, X-R), min(L, X+R) ] と端を切る処理が抜けていたためずっとTLEしてた。 int L, G; int solve(vector&lt;pair&lt;int, int&gt;&gt;&amp; vec) { int l = 0, r = 0; int idx = 0; int cnt = 0; while(1) { while(1) { if(G &lt;= idx || l &lt; vec[idx].first) break; r = max(r, vec[idx].second); idx++; } l = r; cnt ++; if( r …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140827%2F1409155962&quot; title=&quot;UVa12321 Gas Station - 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-08-27 01:12:42</published>
  <title>UVa12321 Gas Station</title>
  <type>rich</type>
  <url>https://logfiles.hatenablog.com/entry/20140827/1409155962</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
