<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>papamitra</author_name>
  <author_url>https://blog.hatena.ne.jp/papamitra/</author_url>
  <blog_title>papamitra</blog_title>
  <blog_url>https://papamitra.hatenadiary.org/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>AtCoder ABC</anon>
    <anon>ABC#132</anon>
    <anon>DP</anon>
    <anon>AtCoder 600点</anon>
    <anon>累積和</anon>
  </categories>
  <description>F - Small Products 問題 正の整数K個を一列に並べたものであって、隣接して並んでいるどの2つの整数の積もN以下であるものの個数を109+7で割った余りを求めてください。 解説 公式解説にあるようにxが最後の整数となるようなi個の整数を並べて条件を満たす場合の数dp[i][x]を使ったプログラムをまず書いてみる。 const MOD: i64 = 1000000000 + 7; fn solve(n: usize, k: usize) -&gt; i64 { let mut dp = vec![vec![0i64; n + 1]; k + 1]; for i in 1..(n + 1…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpapamitra.hatenadiary.org%2Fentry%2F2019%2F07%2F15%2F135922&quot; title=&quot;AtCoder ABC #132 F - Small Products - papamitra&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>https://chart.apis.google.com/chart?cht=tx&amp;chl=%20O%28NK%29</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-07-15 13:59:22</published>
  <title>AtCoder ABC #132 F - Small Products</title>
  <type>rich</type>
  <url>https://papamitra.hatenadiary.org/entry/2019/07/15/135922</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
