<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hitoare</author_name>
  <author_url>https://blog.hatena.ne.jp/hitoare/</author_url>
  <blog_title>hitoare日記</blog_title>
  <blog_url>https://hitoare.hatenablog.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
    <anon>AtCoder</anon>
    <anon>AGC</anon>
  </categories>
  <description>問題リンク 問題概要 \(0\)と\(1\)からなる文字列\(S\)が与えられる。 「\(1 \leqq i &lt; j \leqq|S|\)かつ\(S_i=0,S_j=1\)となる\(i\)と\(j\)の組を選び、\(S_j\)を削除して\(S_i\)の直前に挿入する」という操作を考える。 この操作を0回以上\(K\)回以下繰り返して得られる文字列の総数は何通りか。 解法 操作で文字列がどのように変化するかを考える。 たとえば 0000011111 ↓ 0000101111 ↓ 0000110111 ↓ 1000011011 のように変化する。 この時「選んだ0の直前に挿入する」という条件は、「…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhitoare.hatenablog.com%2Fentry%2F2020%2F06%2F21%2F163638&quot; title=&quot;C - Shift(AtCoder Grand Contest 046) - hitoare日記&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>2020-06-21 16:36:38</published>
  <title>C - Shift(AtCoder Grand Contest 046)</title>
  <type>rich</type>
  <url>https://hitoare.hatenablog.com/entry/2020/06/21/163638</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
