{"author_url":"https://blog.hatena.ne.jp/mayokoex/","blog_title":"mayoko\u2019s diary","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F02%2F01%2F021837\" title=\"Codeforces Round #341 (Div. 2) E. Wet Shark and Blocks - mayoko\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","description":"Codeforces Round #341 (Div. 2) \u306b\u53c2\u52a0\u3057\u307e\u3057\u305f\u3002 E \u89e3\u3051\u306a\u3044\u306e\u306f\u30c0\u30e1\u3060\u2026 \u554f\u984c codeforces.com \u89e3\u6cd5 dp[i][j] = (\u4e0a\u304b\u3089\u6570\u3048\u3066 i \u6841\u76ee\u306e\u6642\u70b9\u3067, x \u3067\u5272\u3063\u305f\u4f59\u308a\u304c j \u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u5834\u5408\u306e\u6570) \u3068\u3057\u307e\u3059\u3002\u3059\u308b\u3068, dp \u306e\u9077\u79fb\u306f dp[i+1][(j*10+a)%x] += dp[i][j] * (block \u306e\u4e2d\u306b a \u304c\u5165\u3063\u3066\u3044\u308b\u6570) \u3068\u306a\u308a\u307e\u3059\u304c, \u3053\u306e dp \u306e\u9077\u79fb\u306f\u884c\u5217\u306e\u639b\u3051\u7b97\u3067\u8868\u305b\u308b\u306e\u3067, \u7c21\u5358\u306b\u8a08\u7b97\u3067\u304d\u307e\u3059\u3002\u306a\u3093\u304b dp \u3092\u96e3\u3057\u304f\u8003\u3048\u3066\u3057\u307e\u3046\u611f\u3058\u304c\u3042\u308b\u306e\u3067\u5358\u7d14\u306a\u9077\u79fb\u3092\u8003\u3048\u308b\u3088\u3046\u306b\u3057\u3088\u3046\u2026 typedef long \u2026","width":"100%","published":"2016-02-01 02:18:37","categories":["CodeForces"],"blog_url":"https://mayokoex.hatenablog.com/","height":"190","type":"rich","title":"Codeforces Round #341 (Div. 2) E. Wet Shark and Blocks","author_name":"mayokoex","url":"https://mayokoex.hatenablog.com/entry/2016/02/01/021837","provider_name":"Hatena Blog","version":"1.0","image_url":null}