{"provider_url":"https://hatena.blog","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmmxsrup.hatenablog.com%2Fentry%2F2016%2F07%2F20%2F015039\" title=\"yukicoder No.44 DP\u306a\u3059\u3054\u308d\u304f - srup\u306e\u30e1\u30e2\u5e33\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","version":"1.0","title":"yukicoder No.44 DP\u306a\u3059\u3054\u308d\u304f","blog_title":"srup\u306e\u30e1\u30e2\u5e33","author_name":"mmxsrup","url":"https://mmxsrup.hatenablog.com/entry/2016/07/20/015039","categories":["yukicoder","dp"],"description":"\u554f\u984c \u554f\u984c\u6982\u8981 \u7701\u7565 \u89e3\u6cd5 \u7c21\u5358\u306b\u6f38\u5316\u5f0f\u304c\u305f\u3064\u3001dp\u3002dp[i] := (i\u30de\u30b9\u306b\u884c\u304f\u65b9\u6cd5\u306e\u30d1\u30bf\u30fc\u30f3)\u3068\u304a\u304f\u3068\u3001\u6f38\u5316\u5f0f\u306f\u3001dp[i] = dp[i - 1] + dp[i - 2]\u3068\u306a\u308b\u3002\u3053\u308c\u306f\u3001i\u30de\u30b9\u76ee\u306b\u884c\u304f\u306b\u306f\u3001i-1\u30de\u30b9\u76ee\u304b\u30891\u3067\u9032\u3080\u3001\u307e\u305f\u306f i-2\u30de\u30b9\u76ee\u304b\u30892\u3067\u9032\u3080\u306e\u3069\u3061\u3089\u304b\u3067\u3042\u308b\u3063\u3053\u3068\u304b\u3089\u3001\u6210\u308a\u7acb\u3064\u5f0f\u3067\u3042\u308b\u3002 \u30df\u30b9 \u7279\u306b\u306a\u3057\u3002 \u30b3\u30fc\u30c9 #include <iostream> #include <algorithm> #include <vector> #include <cstdio> using namespace std; typedef long long ll; #defin\u2026","blog_url":"https://mmxsrup.hatenablog.com/","width":"100%","author_url":"https://blog.hatena.ne.jp/mmxsrup/","published":"2016-07-20 01:50:39","image_url":null,"type":"rich"}