<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>d_tutuz</author_name>
  <author_url>https://blog.hatena.ne.jp/d_tutuz/</author_url>
  <blog_title>数学/競プロメモ</blog_title>
  <blog_url>https://tutuz.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>問題 https://atcoder.jp/contests/tdpc/tasks/tdpc_semiexp 考え方 単純に 駅 にいて連続する到着する駅の長さが の組み合わせの数というDPを考えると となるため、メモリも時間も足りない。 「状態数が多すぎるので、工夫して状態数を減らす」というテクニックを使う。 この単純なDPの遷移を見てみると斜めにそれぞれ遷移していることが分かる。長さ に含まれる組み合わせの数はまとめて状態を考えることができる。 よって 番目までの の和の場合の数 番目の長さ の場合の数 というDPを定義する。DPの初期値は となる。DPの遷移は となる。長さが になった分…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftutuz.hateblo.jp%2Fentry%2F2019%2F01%2F03%2F203828&quot; title=&quot;Typical DP Contest：F - 準急 - 数学/競プロメモ&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-01-03 20:38:28</published>
  <title>Typical DP Contest：F - 準急</title>
  <type>rich</type>
  <url>https://tutuz.hateblo.jp/entry/2019/01/03/203828</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
