<?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 - F - Codeforces リクエストに沿って、正当性の説明をします。ちゃんと証明を組むとなかなか大変でした… 問題概要 要素の整数列 と整数 が与えられる。 1回の操作で、この数列に以下のいずれか1つを行うことができる。 操作 ： の最小要素を1つ選び、その値を1増やす。 操作 ： の最大要素を1つ選び、その値を1減らす。 の中にある整数値が 個以上含まれているようにしたい。そのために必要な最小の操作回数を求めよ。 制約 解法 まず、初期状態で の中に同じ値が 個以上含まれている場合、答えは です。以降はそうでない場合を仮定します。また はソートされている…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbetrue12.hateblo.jp%2Fentry%2F2020%2F04%2F16%2F231647&quot; title=&quot;Codeforces Round #629 (Div. 3) F. Make k Equal - 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://cdn-ak.f.st-hatena.com/images/fotolife/b/betrue12/20200416/20200416231229.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-16 23:16:47</published>
  <title>Codeforces Round #629 (Div. 3) F. Make k Equal</title>
  <type>rich</type>
  <url>https://betrue12.hateblo.jp/entry/2020/04/16/231647</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
