<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mathematicsian</author_name>
  <author_url>https://blog.hatena.ne.jp/mathematicsian/</author_url>
  <blog_title>モラトリアムライフ</blog_title>
  <blog_url>https://mathematicsian.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>問題概要 個の正の整数からなる数列 が与えられる. このとき, 区間 と整数 (負の数でも, 0でもよい) をそれぞれ好きに選んで, 区間上の各 に対して を加えるという操作を1回だけ行う. (いわゆる区間加算) このとき, 最大でいくつ 数列の値を与えられる正の整数 に等しくすることが可能かを求めよ. 制約 codeforces.com 考察 まず, はじめに浮かぶのは選ぶ区間の全探索だろう. しかし当然これは区間を走査するだけで かかってしまい間に合わない. そこで, 一旦操作を観察することにする. もし, 区間 ] に整数 を加えたとき, に等しくなるものは, 元の数列 で 区間 上で …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmathematicsian.hatenablog.com%2Fentry%2F2020%2F04%2F29%2F200018&quot; title=&quot;精進記録 : Educational Codeforces Round #55 E. Increasing Frequency - モラトリアムライフ&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-04-29 20:00:18</published>
  <title>精進記録 : Educational Codeforces Round #55 E. Increasing Frequency</title>
  <type>rich</type>
  <url>https://mathematicsian.hatenablog.com/entry/2020/04/29/200018</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
