<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>https://atcoder.jp/contests/abc149/tasks/abc149_e 解説 https://atcoder.jp/contests/abc149/submissions/9263822 直感的には最大のものからペアで使っていくのが良い。 Ax+Ayを列挙すると1010通りあるので、列挙するのは現実的ではない。 ここから発想の飛躍がある。 Ax+Ayを列挙して降順ソートしたときのM番目の値が気になる。 この値が分かれば、それ以上となるAx+Ayの値の総和を取るのは、累積和を使えばそんなに難しくない。 M番目の値を得たい。といえば二分探索である。 Ax+Ayの値を二分…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2020%2F01%2F01%2F024415&quot; title=&quot;Handshake [AtCoder Beginner Contest 149 E] - はまやんはまやんはまやん&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>2020-01-01 02:44:15</published>
  <title>Handshake [AtCoder Beginner Contest 149 E]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2020/01/01/024415</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
