<?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>前提知識 O(3N)のbitDP 解説 簡単にまとめておく。 サイコロで出せる合計の目の上限は2Dなので、Tが2Dを超えていたら、その部分は絶対余る。 なので、Tは2Dまでを考えればいい。 すると、bitDPができることに気が付く。 dp[msk] := 残っているペナルティトークンの集合がmskであるときの、ペナルティの最小期待値 遷移はO(3N)のbitDPで頑張る。 サイコロである目が出たときに消す操作が複数パターンあったら、DPを見て最小期待値のものを選んでいけばいい。 double dp[1 &lt;&lt; 12]; double opt[1010]; bool changed[1010]; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2020%2F03%2F29%2F033002&quot; title=&quot;EmptyTheBox [SRM 782 Div1 Easy] - はまやんはまやんはまやん&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>2020-03-29 03:30:02</published>
  <title>EmptyTheBox [SRM 782 Div1 Easy]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2020/03/29/033002</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
