<?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/arc104/tasks/arc104_c 解説 https://atcoder.jp/contests/arc104/submissions/17177990 条件の簡単化 まず、条件を少し簡単化していく。 エレベーターの階層を数直線上に考えて、ある人が乗り降りすることを区間として考えてみる。 すると、他の人が乗り降りした回数をC[i]としているが、これは区間の長さ-1と考えて問題ない。 自由度が高すぎる。何か固定できないか？ さて、1階で区間の長さ3で乗った場合を考えよう。 すると、x=1で乗ってx=4で降りる人がまず確定する。 次に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2020%2F10%2F03%2F234300&quot; title=&quot;Fair Elevator [AtCoder Regular Contest 104 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-10-03 23:43:00</published>
  <title>Fair Elevator [AtCoder Regular Contest 104 C]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2020/10/03/234300</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
