<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>emtubasa</author_name>
  <author_url>https://blog.hatena.ne.jp/emtubasa/</author_url>
  <blog_title>ツバサの備忘録</blog_title>
  <blog_url>https://emtubasa.hateblo.jp/</blog_url>
  <categories>
    <anon>全探索</anon>
  </categories>
  <description>問題 提出コード 解法 xは数列の中にちょうどx個存在しないといけないのですが、今回数字を増やす操作ができないので、xの個数がx未満であったら、全て取り除かなければなりません。 ここで制約をみると、数列の長さは以下なので、この時点でこれを超える大きさの数字はすべて取り除くことが確定します。これによって計算量を落とす必要があります。 あとは~のすべての数字について全探索をします。今iを見ているとき、iの個数がちょうどiか、iを超えているか、iを下回っているかで操作がかわります。ちょうどのときは何も起こらないので省略します。 (1). 超えているとき ちょうどi個にするので、 (今ある個数) - …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Femtubasa.hateblo.jp%2Fentry%2F2018%2F09%2F28%2F120000_2&quot; title=&quot;ARC087 C - Good Sequence - ツバサの備忘録&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>https://cdn.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-09-28 12:00:00</published>
  <title>ARC087 C - Good Sequence</title>
  <type>rich</type>
  <url>https://emtubasa.hateblo.jp/entry/2018/09/28/120000_2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
