<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>baitop</author_name>
  <author_url>https://blog.hatena.ne.jp/baitop/</author_url>
  <blog_title>バイトの競プロメモ</blog_title>
  <blog_url>https://baitop.hatenadiary.jp/</blog_url>
  <categories>
    <anon>不変量</anon>
    <anon>ARC_足し算ゲー</anon>
    <anon>最小手数</anon>
  </categories>
  <description>G - Approximate Equalization メモ 差分だけが重要なので、各Aiについて Ai -= min(A)としていい すると任意の値が0以上の整数になる。 また、この操作において合計は不変であるため 最終的なすべての合計はsa := sigma(A)になる 最終的な数列としてあらわれる物を考える saがNで割り切れるときはすべての要素はsa / Nになり それ以外の場合、sa/N(切り捨て)と sa/N(切り上げ)になる 切り捨ての小さい数が最終的に数列に含まれる個数をa 切り上げの大きい数が最終的に数列に含まれる個数をbとしたときに b = sa % Nで、a = n -…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaitop.hatenadiary.jp%2Fentry%2F2023%2F07%2F11%2F030032&quot; title=&quot;AtCoder Beginner Contest 307 G - Approximate Equalization - バイトの競プロメモ&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>2023-07-11 03:00:32</published>
  <title>AtCoder Beginner Contest 307 G - Approximate Equalization</title>
  <type>rich</type>
  <url>https://baitop.hatenadiary.jp/entry/2023/07/11/030032</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
