<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>betrue12</author_name>
  <author_url>https://blog.hatena.ne.jp/betrue12/</author_url>
  <blog_title>ARMERIA</blog_title>
  <blog_url>https://betrue12.hateblo.jp/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>プログラミング</anon>
    <anon>競技プログラミング</anon>
  </categories>
  <description>D - Gathering Children 私の解法をTwitterに流したらわりと好評だったので記事にまとめておきます。 解法 ある程度動きをシミュレーションしてみると、十分に時間が経った後は全ての子供が RL の2マスで振動するということが分かります。最終状態を求めるためには動きが止まってくれると考えやすいのですが、振動する動きをそのまま扱うと少し面倒です。これを扱いやすくするために、移動2ターンをセットで考えてみることにしましょう。 2ターンをセットで考えると子供の動きは以下の3パターンに分類されます。 自分が R で右隣も R：2ターンで右に2マス動く。 自分が L で左隣も L：2…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbetrue12.hateblo.jp%2Fentry%2F2019%2F08%2F11%2F020426&quot; title=&quot;AtCoder Beginner Contest 136 D - Gathering Children - ARMERIA&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>2019-08-11 02:04:26</published>
  <title>AtCoder Beginner Contest 136 D - Gathering Children</title>
  <type>rich</type>
  <url>https://betrue12.hateblo.jp/entry/2019/08/11/020426</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
