<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lan496</author_name>
  <author_url>https://blog.hatena.ne.jp/lan496/</author_url>
  <blog_title>lan496の日記</blog_title>
  <blog_url>https://lan496.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Atcoder</anon>
  </categories>
  <description>制約からして二分探索なんだろうとは思ったが本番では解けなかった。 a,bを最初にソートしておき、付値関数C(x)として次のものを考える。C(x): a[i]*b[j]a[i]*b[pos]x のとき、a[i]x なるpos'について pos&gt;pos' が成り立つ。従ってC(x)はO(N)で計算できる。 #include &lt;bits/stdc++.h&gt; using namespace std; #define REP(i,n) for(int i=0;i&lt;(int)(n);i++) typedef long long ll; bool C(vector&lt;ll&gt; &amp;a,vector&lt;ll&gt; &amp;b,…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flan496.hatenadiary.jp%2Fentry%2F2015%2F04%2F18%2F235406&quot; title=&quot;ARC 37 C問題　億マス計算 - lan496の日記&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>2015-04-18 23:54:06</published>
  <title>ARC 37 C問題　億マス計算</title>
  <type>rich</type>
  <url>https://lan496.hatenadiary.jp/entry/2015/04/18/235406</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
