<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lan496</author_name>
  <author_url>https://blog.hatena.ne.jp/lan496/</author_url>
  <blog_title>lan496の日記</blog_title>
  <blog_url>https://lan496.hatenadiary.jp/</blog_url>
  <categories>
    <anon>AOJ</anon>
  </categories>
  <description>n日までに得る弁当の総数の期待値を計算すればいいわけだが、漸化式がうまく作れない &amp;&amp; 他の人のコードを読んでも自明のようにdpしていてよく分からない、というツラさがあったので、この問題の漸化式が私のように漸化式が思いつかなかった人のために愚直に式の導出をする(もっとスマートに立式できる方法があったら教えて下さい)。: n日までに得る弁当の総数 : n日目に弁当を得る確率 : n日目に弁当を得て、それまでにk-1回連続で弁当を得ている確率期待値の性質からなので、の漸化式を求めればよい。ここでについて以下の漸化式が成り立つ。 上式を繰り返し用いて、 ゆえに、 ここで、であるからのとき、 であるか…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flan496.hatenadiary.jp%2Fentry%2F2015%2F04%2F17%2F103535&quot; title=&quot;AOJ 1056 Ben Toh - lan496の日記&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-04-17 10:35:35</published>
  <title>AOJ 1056 Ben Toh</title>
  <type>rich</type>
  <url>https://lan496.hatenadiary.jp/entry/2015/04/17/103535</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
