<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>simezi_tan</author_name>
  <author_url>https://blog.hatena.ne.jp/simezi_tan/</author_url>
  <blog_title>simezi_tanの日記</blog_title>
  <blog_url>https://simezi-tan.hatenadiary.org/</blog_url>
  <categories>
    <anon>TopCoder</anon>
    <anon>動的計画法</anon>
    <anon>確率・場合の数</anon>
  </categories>
  <description>問題 nドルを賭け、勝つとnドルがもらえ、負けるとそのnドルを失うギャンブルがある。 次のような方針で賭けをする。 最初は1ドルを賭ける 負けた場合、前のラウンドの倍のお金を賭ける 勝った場合、前のラウンドの掛け金にかかわらず1ドルをかける 最初initSumドルのお金を持っていて、roundsラウンド回（途中でやめてもよい）賭けをする。 一回のラウンドで勝つ確率がprob%のとき、お金をgoalSum以上に出来る確率を求めよ。 制約条件 initSum,goalSum≦1000 1≦rounds≦50 0≦prob≦100</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsimezi-tan.hatenadiary.org%2Fentry%2F20120110%2F1326195827&quot; title=&quot;TopCoder SRM 339 Div1 Medium TestBettingStrategy - simezi_tanの日記&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>2012-01-10 20:43:47</published>
  <title>TopCoder SRM 339 Div1 Medium TestBettingStrategy</title>
  <type>rich</type>
  <url>https://simezi-tan.hatenadiary.org/entry/20120110/1326195827</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
