<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>torus711</author_name>
  <author_url>https://blog.hatena.ne.jp/torus711/</author_url>
  <blog_title>torus711 のアレ</blog_title>
  <blog_url>https://torus711.hatenablog.com/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>累積和</anon>
  </categories>
  <description>問題文 https://atcoder.jp/contests/abc346/tasks/abc346_d 問題概要 $n$ 項からなるバイナリ列 $S = \langle S_1, S_2, \dots, S_n \rangle$ ($S_i \in \{ 0, 1 \}$) が与えられる．$S$ に対し，次の操作を任意回適用できる． コスト $C_i$ かけて $S_i$ を反転する． $S$ の添字 $i$ ($1 \leq i 制約 $2 \leq n \leq 2 \times 10^5$ $1 \leq C_i \leq 10^9$</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftorus711.hatenablog.com%2Fentry%2F2024%2F04%2F03%2F212128&quot; title=&quot;AtCoder Beginner Contest 346, D : Gomamayo Sequence - torus711 のアレ&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>2024-04-03 21:21:28</published>
  <title>AtCoder Beginner Contest 346, D : Gomamayo Sequence</title>
  <type>rich</type>
  <url>https://torus711.hatenablog.com/entry/2024/04/03/212128</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
