<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tsutaj</author_name>
  <author_url>https://blog.hatena.ne.jp/tsutaj/</author_url>
  <blog_title>hogecoder</blog_title>
  <blog_url>https://tsutaj.hatenablog.com/</blog_url>
  <categories>
    <anon>Codeforces</anon>
    <anon>文字列</anon>
    <anon>要考察</anon>
  </categories>
  <description>問題概要 原文 → Problem - D2 - Codeforces 0 と 1 のみからなる長さ の文字列 が与えられる。 の文字を、以下の条件が満たされた上で変更することを考える。 全ての に対して、 の 文字目から 文字目までのみからできる最長単調非減少列の大きさが元の文字列と変わらない 変更後の文字列であって、0 を最も多く含むものを求めよ。 解説 まず、&quot;10&quot; という文字列について変更不可能であることがわかる。ここから考察を進めていこう。 &quot;10&quot; という文字列は 1 と 0 を 1 文字ずつ含んでいるが、&quot;10&quot; を通過する直前の部分列が最後にどの文字を使ったかによって場合分け…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftsutaj.hatenablog.com%2Fentry%2F2019%2F08%2F21%2F223227&quot; title=&quot;Codeforces Round #581 Div. 2 D: Kirk and a Binary String - hogecoder&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>https://chart.apis.google.com/chart?cht=tx&amp;chl=%20N</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-08-21 22:32:27</published>
  <title>Codeforces Round #581 Div. 2 D: Kirk and a Binary String</title>
  <type>rich</type>
  <url>https://tsutaj.hatenablog.com/entry/2019/08/21/223227</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
