{"categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"provider_url":"https://hatena.blog","type":"rich","height":"190","blog_url":"https://blog.hamayanhamayan.com/","provider_name":"Hatena Blog","url":"https://blog.hamayanhamayan.com/entry/2019/01/12/160257","width":"100%","author_name":"hamayanhamayan","title":"Grid 2 [Educational DP Contest / DP \u307e\u3068\u3081\u30b3\u30f3\u30c6\u30b9\u30c8 Y]","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F01%2F12%2F160257\" title=\"Grid 2 [Educational DP Contest / DP \u307e\u3068\u3081\u30b3\u30f3\u30c6\u30b9\u30c8 Y] - \u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","version":"1.0","blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","description":"https://atcoder.jp/contests/dp/tasks/dp_y \u524d\u63d0\u77e5\u8b58 \u5305\u9664\u539f\u7406 \u89e3\u8aac https://atcoder.jp/contests/dp/submissions/3956127\u540c\u69d8\u306e\u5305\u9664\u539f\u7406\u554f\u984c\u3092\u898b\u305f\u3053\u3068\u304c\u3042\u3063\u305f\u304b\u3089\u3001\u5305\u9664\u539f\u7406\u3067\u89e3\u304f\u3068\u5206\u304b\u3063\u305f\u306e\u3067\u3001\u8003\u5bdf\u904e\u7a0b\u306f\u7121\u3044\u3067\u3059\u3002 \u308f\u304b\u308a\u3084\u3059\u3055\u306e\u305f\u3081\u306b\u6bb5\u968e\u7684\u306b\u89e3\u8aac\u3059\u308b\u3002 \u3042\u3068\u3001mod10^9+7\u4e0a\u3067\u306eC(a,b)\u306f\u8a08\u7b97\u3067\u304d\u308b\u3082\u306e\u3068\u3057\u3066\u9032\u3081\u308b\u3002 C(a,b)\u306f\u4e8c\u9805\u5b9a\u7406\u3002 dp[i][ng] := i\u756a\u76ee\u306e\u58c1\u306e\u30de\u30b9\u306b\u3044\u3066\u3001(1,1)\u304b\u3089\u58c1\u306e\u30de\u30b9\u3092ng\u56de\u4ee5\u4e0a\u8a2a\u308c\u3066\u3044\u308b\u7d44\u307f\u5408\u308f\u305b 0\u756a\u76ee\u306e\u58c1\u306e\u30de\u30b9\u3092(1,1)\u3068\u3057\u3066\u3001N+1\u756a\u76ee\u306e\u58c1\u2026","published":"2019-01-12 16:02:57","image_url":null}