<?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>yukicoder</anon>
  </categories>
  <description>問題 No.362 門松ナンバー - yukicoder 解法 calc(x) = (x 以下の門松ナンバーがいくつあるか) というのがある程度高速に求められたとすると, x に関する二分探索をやれば良いです。ということで, calc 関数が欲しいですが, これは桁dp をやれば良いです。dp[桁][100で割った余り][xより小さいか][有効な数字の数] = 門松ナンバーの数 有効な数字の数, というのは例えば最初 3 文字が 000 でもその後に 000153 と続けばこれは有効な門松ナンバーなのでそれを考慮するためのものです。 bool isKadomatsu(const vector&lt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F04%2F21%2F220653&quot; title=&quot;yukicoder No.362 門松ナンバー - 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-04-21 22:06:53</published>
  <title>yukicoder No.362 門松ナンバー</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2016/04/21/220653</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
