<?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/abc170/tasks/abc170_c 解説 https://atcoder.jp/contests/abc170/submissions/14358523 全探索で解く。 答えの候補は、制約を見ると[0,101]の範囲にしかない。 よって、答えを全探索して、数列pに含まれなくて、Xに最も近いものを探していけばいい。 実装が問題になるが、数列pに含まれているかというのは、数列pをsetで持っておけば高速に判定できる。 Xに近いものを最小差分(diff)を持ちながら答えを更新していく。 yを小さい方から順に更新していくことにすれば、勝手…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2020%2F06%2F14%2F231912&quot; title=&quot;Forbidden List [AtCoder Beginner Contest 170 C] - はまやんはまやんはまやん&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-06-14 23:19:12</published>
  <title>Forbidden List [AtCoder Beginner Contest 170 C]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2020/06/14/231912</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
