<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mmxsrup</author_name>
  <author_url>https://blog.hatena.ne.jp/mmxsrup/</author_url>
  <blog_title>srupのメモ帳</blog_title>
  <blog_url>https://mmxsrup.hatenablog.com/</blog_url>
  <categories>
    <anon>yukicoder</anon>
    <anon>シミュレーション</anon>
    <anon>モンテカルロ法</anon>
  </categories>
  <description>問題 問題概要 省略 解法 誤差の許容が大きいため、モンテカルロ法を使えばいいらしい。やっていることは、確率pで1枚目を選ぶとあるので、乱数で0~1までだし、pより小さければ1枚目を選び、そうでなければ、その他のものを等しい確率で選ぶというシミュレーションを何度も行っている。誤差が緩い場合、何回もやれば、正確な値に近づくという考えでやっていってもいいらしい。 ミス こういう感じの問題は初めて。 コード #include &lt;iostream&gt; #include &lt;algorithm&gt; #include &lt;vector&gt; #include &lt;cstdio&gt; #include &lt;cstdlib&gt; t…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmmxsrup.hatenablog.com%2Fentry%2F2016%2F08%2F31%2F162526&quot; title=&quot;yukicoder No.173 カードゲーム（Medium） - srupのメモ帳&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>2016-08-31 16:25:26</published>
  <title>yukicoder No.173 カードゲーム（Medium）</title>
  <type>rich</type>
  <url>https://mmxsrup.hatenablog.com/entry/2016/08/31/162526</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
