<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mayokoex</author_name>
  <author_url>https://blog.hatena.ne.jp/mayokoex/</author_url>
  <blog_title>mayoko’s diary</blog_title>
  <blog_url>https://mayokoex.hatenablog.com/</blog_url>
  <categories>
    <anon>CodeForces</anon>
  </categories>
  <description>問題 codeforces.com 解法 Kleofáš のランクの合計が S であるとしましょう。すると, 結局求めるべきなのは n 試合終わった後にランクの合計が S 未満であるような人の数の期待値です。ということで, 以下のような dp を考えます。dp[i][j] = (i 試合終わった後に ランクの合計が j であるような人の数の期待値)この dp の更新式は, dp[i+1][j] = (dp[i][j-1] + dp[i][j-2] + ... + dp[i][j-m]) / (m-1) - dp[i][j-X[i]] / (m-1)となります。i 試合終わった時点でのランクの合…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2015%2F11%2F26%2F201812&quot; title=&quot;Codeforces Round #333 (Div. 1) C. Kleofáš and the n-thlon - mayoko’s diary&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>2015-11-26 20:18:12</published>
  <title>Codeforces Round #333 (Div. 1) C. Kleofáš and the n-thlon</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2015/11/26/201812</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
