{"height":"190","author_url":"https://blog.hatena.ne.jp/papamitra/","description":"F - Small Products \u554f\u984c \u6b63\u306e\u6574\u6570K\u500b\u3092\u4e00\u5217\u306b\u4e26\u3079\u305f\u3082\u306e\u3067\u3042\u3063\u3066\u3001\u96a3\u63a5\u3057\u3066\u4e26\u3093\u3067\u3044\u308b\u3069\u306e2\u3064\u306e\u6574\u6570\u306e\u7a4d\u3082N\u4ee5\u4e0b\u3067\u3042\u308b\u3082\u306e\u306e\u500b\u6570\u3092109+7\u3067\u5272\u3063\u305f\u4f59\u308a\u3092\u6c42\u3081\u3066\u304f\u3060\u3055\u3044\u3002 \u89e3\u8aac \u516c\u5f0f\u89e3\u8aac\u306b\u3042\u308b\u3088\u3046\u306bx\u304c\u6700\u5f8c\u306e\u6574\u6570\u3068\u306a\u308b\u3088\u3046\u306ai\u500b\u306e\u6574\u6570\u3092\u4e26\u3079\u3066\u6761\u4ef6\u3092\u6e80\u305f\u3059\u5834\u5408\u306e\u6570dp[i][x]\u3092\u4f7f\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u307e\u305a\u66f8\u3044\u3066\u307f\u308b\u3002 const MOD: i64 = 1000000000 + 7; fn solve(n: usize, k: usize) -> i64 { let mut dp = vec![vec![0i64; n + 1]; k + 1]; for i in 1..(n + 1\u2026","categories":["AtCoder","AtCoder ABC","ABC#132","DP","AtCoder 600\u70b9","\u7d2f\u7a4d\u548c"],"provider_name":"Hatena Blog","published":"2019-07-15 13:59:22","url":"https://papamitra.hatenadiary.org/entry/2019/07/15/135922","blog_title":"papamitra","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpapamitra.hatenadiary.org%2Fentry%2F2019%2F07%2F15%2F135922\" title=\"AtCoder ABC #132 F - Small Products - papamitra\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://papamitra.hatenadiary.org/","author_name":"papamitra","type":"rich","version":"1.0","image_url":"https://chart.apis.google.com/chart?cht=tx&chl=%20O%28NK%29","title":"AtCoder ABC #132 F - Small Products","provider_url":"https://hatena.blog"}