<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mayokoex</author_name>
  <author_url>https://blog.hatena.ne.jp/mayokoex/</author_url>
  <blog_title>mayoko’s diary</blog_title>
  <blog_url>https://mayokoex.hatenablog.com/</blog_url>
  <categories>
    <anon>CodeForces</anon>
  </categories>
  <description>問題 codeforces.com 解法 まず, 2 文字以下なら絶対にアルゴリズムは終了します。3 文字以上の時は, xzy または yxz または zyx が繰り返し並ぶ構造になっていれば収束しますが, これは 指定された区間における x, y, z の数が区間の長さの大体 1/3 になっていれば良いということなので, そうなっているかチェックします。 const int MAXN = 100010; int X[MAXN], Y[MAXN], Z[MAXN]; int main() { cin.tie(0); ios::sync_with_stdio(false); string s; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F01%2F28%2F085754&quot; title=&quot;Codeforces Round #215 (Div. 1) A. Sereja and Algorithm - mayoko’s diary&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>2016-01-28 08:57:54</published>
  <title>Codeforces Round #215 (Div. 1) A. Sereja and Algorithm</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2016/01/28/085754</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
