<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>https://yukicoder.me/problems/no/813 解説 https://yukicoder.me/submissions/338365公式解説にもあるが、門を1つにまとめ上げることで答えを求めよう。 逃走率p1、通過率q1の門、逃走率p2、通過率q2の門を1つにまとめると、逃走率 p=(p1+q1*q1*p2/(1-p1*p2)) 通過率 q=q1*q2/(1-p1*p2)となる。これを繰り返して、N個の門を1つにすればいい。 想定解では二分累乗法（繰り返し二乗法）が紹介されているが、 N≦10^3なので、愚直に計算しても間に合う。 N≦10^18の場合は二分累乗法が要…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F04%2F13%2F155413&quot; title=&quot;ユキちゃんの冒険 [yukicoder No.813] - はまやんはまやんはまやん&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>2019-04-13 15:54:13</published>
  <title>ユキちゃんの冒険 [yukicoder No.813]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/04/13/155413</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
