<?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/abc139/tasks/abc139_e 解説 https://atcoder.jp/contests/abc139/submissions/7339484 全くいい方針が思いつかない。 AtCoderなので、貪欲法かもしれない。 先頭から順番にペアでとってこれる場合はとってくる動作を繰り返せばいい。 簡単すぎる気がするが、そのまま実装するとO(N3)になる。 これを高速化するのが本質か？ queueなどで、とりあえず配列Aは置き換えておこう。 貪欲にペアをとっていくには、取れるペアをどっかにとっておけばいい。 これは、ペアをとった場合…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F09%2F04%2F220606_3&quot; title=&quot;League [AtCoder Beginner Contest 139 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>2019-09-04 22:06:06</published>
  <title>League [AtCoder Beginner Contest 139 E]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/09/04/220606_3</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
