<?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>
  </categories>
  <description>atcoder.jp 解説をみてピンと来なかったところを補足する形の自分用のメモです。 まず、K個を足して平均に置き換えるという操作は分かりにくいので 上のように操作をK分木で表す事にする そして、1の頂点の深さをa1....am 0の頂点の深さをb1.....bnとする すると最終的な値をxとした時に それぞれの要素についての最終的な寄与を考えると x = k^(-a1) + ... k^(-am)である事が分かる また、ここで実はすべての葉が1の場合はxが必ず1になる事が分かる。 なぜならその場合、下のようにk個を取った平均が常に1になりつづけるからである よって以下の等式が得られ 1 =…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaitop.hatenadiary.jp%2Fentry%2F2021%2F12%2F11%2F000155&quot; title=&quot;AtCoder Grand Contest 009 E - Eternal Average - バイトの競プロメモ&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/baitop/20211210/20211210233005.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-12-11 00:01:55</published>
  <title>AtCoder Grand Contest 009 E - Eternal Average</title>
  <type>rich</type>
  <url>https://baitop.hatenadiary.jp/entry/2021/12/11/000155</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
