<?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>AOJ</anon>
  </categories>
  <description>問題 Rabbit Game Playing | Aizu Online Judge数列 D が与えられる。これに関して, 以下の条件を満たす並べ方は何通りあるか求めよ。 条件: 任意の i について, D[i] 解法 挿入DP というやつ？dp[i] = (i 番目までの並べ方の場合の数) というのが分かっているとき, i+1 番目の数を入れられるところは, 今までの並べ方に関係なく決まります(直後の数との差が T 以下なら大丈夫)。よって, i+1 番目の数を挿入できるところは i+1 - (D[i+1]-T 以上の要素の数) + 1 となるのですが, これは D をソートしておくと高速に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F06%2F25%2F114813&quot; title=&quot;AOJ 2383 Rabbit Game Playing - 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-06-25 11:48:13</published>
  <title>AOJ 2383 Rabbit Game Playing</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2016/06/25/114813</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
