<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>betrue12</author_name>
  <author_url>https://blog.hatena.ne.jp/betrue12/</author_url>
  <blog_title>ARMERIA</blog_title>
  <blog_url>https://betrue12.hateblo.jp/</blog_url>
  <categories>
    <anon>Codeforces</anon>
    <anon>プログラミング</anon>
    <anon>競技プログラミング</anon>
  </categories>
  <description>お題箱より。 Problem - D - Codeforces 問題概要 ※解説の都合上、0-indexedと半開区間での記述に書き換えます。 非負とは限らない整数列 と、正整数 が与えられる。 この数列の連続部分列 について、そのスコアを と定める。ただし長さ0の連続部分列のスコアは0とする。 スコアの最大値を求めよ。 制約 解法 連続部分列の和（区間和）は、累積和を取ってその差を考えるのが鉄則です。以下のように要素の「区切り位置」と累積和を対応させ、区間を半開区間として捉えると、累積和の差と区間和がキレイに対応します。 もしスコア計算に の項がなければ、この問題は以下のように解けます。 累…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbetrue12.hateblo.jp%2Fentry%2F2019%2F11%2F23%2F142302&quot; title=&quot;Educational Codeforces Round 69 D. Yet Another Subarray Problem - ARMERIA&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=%20a_%7B0%7D%2C%20...%2C%20a_%7Bn-1%7D</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-11-23 14:23:02</published>
  <title>Educational Codeforces Round 69 D. Yet Another Subarray Problem</title>
  <type>rich</type>
  <url>https://betrue12.hateblo.jp/entry/2019/11/23/142302</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
