<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drken1215</author_name>
  <author_url>https://blog.hatena.ne.jp/drken1215/</author_url>
  <blog_title>けんちょんの競プロ精進記録</blog_title>
  <blog_url>https://drken1215.hatenablog.com/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>AtCoder300点</anon>
    <anon>ABC-C</anon>
    <anon>灰色diff</anon>
    <anon>NoviSteps5Q</anon>
    <anon>ランレングス圧縮</anon>
    <anon>文字列</anon>
    <anon>文字列のfor文</anon>
    <anon>考察：区間ごとに分割して考える</anon>
    <anon>シミュレーション</anon>
    <anon>0と1の問題</anon>
  </categories>
  <description>ランレングス圧縮で解いた 問題へのリンク 問題概要 0 と 1 からなる長さ の文字列 が与えられる。この文字列の中での「1 の塊」のうち、左から 番目のものを、 番目のものの右に移動させよ。 例：&quot;010011100011001&quot; → &quot;010011111000001&quot; 制約 考えたこと まず、文字列 をランレングス圧縮しよう。そうすると、 &quot;010011100011001&quot; → (0, 1), (1, 1), (0, 2), (1, 3), (0, 3), (1, 2), (0, 2), (1, 0) というようになる。ランレングス圧縮のやり方については、次の問題の公式解説を見るとよい。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2024%2F11%2F17%2F012903&quot; title=&quot;AtCoder ABC 380 C - Move Segment (5Q, 灰色, 300 点) - けんちょんの競プロ精進記録&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://cdn.user.blog.st-hatena.com/default_entry_og_image/80936665/1730992592391452</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-11-17 01:29:03</published>
  <title>AtCoder ABC 380 C - Move Segment (5Q, 灰色, 300 点)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2024/11/17/012903</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
