<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bqn2</author_name>
  <author_url>https://blog.hatena.ne.jp/bqn2/</author_url>
  <blog_title>人間だけど競プロやる</blog_title>
  <blog_url>https://bqn2.hatenablog.com/</blog_url>
  <categories>
    <anon>Codeforces</anon>
  </categories>
  <description>DP難しい。 全事象は塔を建てるか建てないかの2通りの組み合わせで、通り。このうち題意をみたす塔の立て方のパターン数の確率を求めれば良い。 良い塔の建て方は、奇数の和でNになる場合の数なので、これをDPで求めたい。 気づき 累積和＋DPは貰うDPのほうが見えやすい 最初配るDPで考えていて、累積和で計算量を落とせることに気づかなかった。 貰うDPで考えて、あるインデックスkのときにどこから遷移してくるかを考えると、 k-1,k-3,k-5,...1または0（偶奇で変わる） となる。 遷移として書くと、 dp[i] = dp[i-1] + dpi[i-3]+ dp[i-5] + ... dp[0…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbqn2.hatenablog.com%2Fentry%2F2020%2F12%2F01%2F143434&quot; title=&quot;Educational Codeforces Round 98 (Rated for Div. 2) D. Radio Towers   - 人間だけど競プロやる&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-12-01 14:34:34</published>
  <title>Educational Codeforces Round 98 (Rated for Div. 2) D. Radio Towers  </title>
  <type>rich</type>
  <url>https://bqn2.hatenablog.com/entry/2020/12/01/143434</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
