<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>peroon</author_name>
  <author_url>https://blog.hatena.ne.jp/peroon/</author_url>
  <blog_title>perogram</blog_title>
  <blog_url>https://perogram.hateblo.jp/</blog_url>
  <categories>
    <anon>codeforces</anon>
    <anon>周期性</anon>
  </categories>
  <description>Quiz https://codeforces.com/contest/1180/problem/C AC Code https://codeforces.com/contest/1180/submission/55893151 観察 シミュレーションしてみる 一番大きい値が左端に来た後は、居座る その後は、左端以外で周期的になる a, mの範囲が広いので周期性を使って途中のシミュレーションをスキップするのだな、と思う 解法 2n回シミュレートすればすべての状態は列挙したことになる 前半のn回：最大値を左端に動かす 後半のn回：周期に入った状態をすべて列挙する 注意点 n-1周期でループするか…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperogram.hateblo.jp%2Fentry%2F2019%2F06%2F24%2F025916&quot; title=&quot;C. Valeriy and Deque - perogram&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-06-24 02:59:16</published>
  <title>C. Valeriy and Deque</title>
  <type>rich</type>
  <url>https://perogram.hateblo.jp/entry/2019/06/24/025916</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
