<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a_kawashiro</author_name>
  <author_url>https://blog.hatena.ne.jp/a_kawashiro/</author_url>
  <blog_title>a_kawashiroのブログ</blog_title>
  <blog_url>https://a-kawashiro.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>kについて二分探索した後、その判定を頑張ってO(n)で出来るようにする。 #include &lt;stdio.h&gt; #include &lt;utility&gt; #include &lt;set&gt; #include &lt;algorithm&gt; #include &lt;vector&gt; #define MAX_V 1000100 using namespace std; int n; int ai[MAX_V],can[MAX_V],bi2ai[MAX_V]; pair&lt;int,int&gt; bi[MAX_V]; int ok(int k) { if(k==0) return 1; double sumA=0; for(int…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110830%2F1314718640&quot; title=&quot;JOI2011本選5番 - a_kawashiroのブログ&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>2011-08-30 00:37:20</published>
  <title>JOI2011本選5番</title>
  <type>rich</type>
  <url>https://a-kawashiro.hatenablog.com/entry/20110830/1314718640</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
