<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mmxsrup</author_name>
  <author_url>https://blog.hatena.ne.jp/mmxsrup/</author_url>
  <blog_title>srupのメモ帳</blog_title>
  <blog_url>https://mmxsrup.hatenablog.com/</blog_url>
  <categories>
    <anon>Codeforces</anon>
  </categories>
  <description>問題 問題概要 カップを3つ用意して, その中のどこかに玉をいれる. カップの番号を左から0, 1, 2としてn回動かす. その動かし方は, 奇数回の時は0と1を入れ替えて, 偶数回の時は1と2を入れ替える. n回入れ替えたあとの位置が与えられるので, はじめ何番目の位置に玉が入っていたかを求める問題. 解法 012 102 120 210 201 021 という順番で動きはじめの012に戻る. これは周期6で動くので, mod6の値を使って計算すればよい. ミス 実験が大切. コード #include &lt;bits/stdc++.h&gt; using namespace std; typedef …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmmxsrup.hatenablog.com%2Fentry%2F2017%2F03%2F02%2F210026&quot; title=&quot;codeforces 401 div2 A. Shell Game - srupのメモ帳&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>2017-03-02 21:00:26</published>
  <title>codeforces 401 div2 A. Shell Game</title>
  <type>rich</type>
  <url>https://mmxsrup.hatenablog.com/entry/2017/03/02/210026</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
