<?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>AtCoder</anon>
  </categories>
  <description>問題 dwango2015-honsen.contest.atcoder.jp 解法 dp[n][x][renzoku][f2] = (n 文字目の時点でニコニコ文字列が x 個あり, 25 という文字列が直前に renzoku 個続いていて, 直前の文字が 2 であるかどうかのフラグが f2 である場合に, 全体としてニコニコ文字列が X 個未満になるような場合の数) という dp を求めます。文字列 S の ? 部分にはそれぞれ 10 通りの自由度があるので, 求める答えは ? の数 p に対して 10^p - dp[0][0][0][0] となります。dp は上手いことがんばりましょう。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2015%2F10%2F23%2F115738&quot; title=&quot;dwangoプログラミングコンテスト A - ニコニコ文字列２ - 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>2015-10-23 11:57:38</published>
  <title>dwangoプログラミングコンテスト A - ニコニコ文字列２</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2015/10/23/115738</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
