<?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>CodeChef</anon>
  </categories>
  <description>問題 https://www.codechef.com/problems/CIELBTL 解法 基本的に dp[va][vb][m] = (自分の残り HP が va で敵の残り HP が vb で残り MP が m である時の勝率)という DP で解けますが, いろいろ難しいところがあるので, ひとつずつやっていきます。まず, 「引き分けならもう一回やり直し」というところがめんどくさいですが, 「引き分けの場合の勝率」を p として, dp します。dp[Va][Vb][M] = dp[0][0][*] = p となっているはずなので, p の値について二分探索することで, 正確な p を求…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F01%2F27%2F171157&quot; title=&quot;CodeChef Ciel and Battle Arena - 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>2016-01-27 17:11:57</published>
  <title>CodeChef Ciel and Battle Arena</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2016/01/27/171157</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
