<?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>SRM</anon>
    <anon>考察</anon>
  </categories>
  <description>問題 問題概要 x = {4, 2, 1, 0}のとき、長さ4の文字列で、その中に、1文字の連続文字列が4つ(b, a, a, a)、2文字の連続文字列が2つ(aa, aa)、3文字の連続文字列が1つ(aaa)、4文字の連続文字列が0つである文字列を出力すればいい。文字列が作れないなら、空文字を出力すればいい。 解法 考察として、例えば、aaaという連続文字列(ex a, b, aa, bb, aaa)があるとき、3連続文字列が1つ、2連続文字列が2つ、1連続文字列が3つとなる。これは、n連続文字列があるとき、n連続文字列が1つ、n-1連続文字列が2つ... 2連続文字列がn-1個、1連続文字…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmmxsrup.hatenablog.com%2Fentry%2F2016%2F10%2F02%2F192734&quot; title=&quot;SRM 695 div1 easy BearPasswordLexic	 - 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>2016-10-02 19:27:34</published>
  <title>SRM 695 div1 easy BearPasswordLexic	</title>
  <type>rich</type>
  <url>https://mmxsrup.hatenablog.com/entry/2016/10/02/192734</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
