{"type":"rich","author_url":"https://blog.hatena.ne.jp/leafirby/","author_name":"leafirby","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Feppc.hatenablog.com%2Fentry%2F2020%2F09%2F16%2F232508\" title=\"ABC167E-Colorful Blocks\u3092DP\u3067\u89e3\u304d\u305f\u304b\u3063\u305f\u8a71 - \u6570\u3048\u4e0a\u3052\u3092\u514b\u670d\u3057\u305f\u3044\u30d6\u30ed\u30b0\" 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","height":"190","published":"2020-09-16 23:25:08","categories":[],"title":"ABC167E-Colorful Blocks\u3092DP\u3067\u89e3\u304d\u305f\u304b\u3063\u305f\u8a71","blog_url":"https://eppc.hatenablog.com/","description":"\u554f\u984c\u6982\u8981 \u4e00\u5217\u306b$N$\u500b\u306e\u30d6\u30ed\u30c3\u30af\u304c\u7f6e\u3044\u3066\u3042\u308b\u3002\u305d\u308c\u305e\u308c\u306e\u30d6\u30ed\u30c3\u30af\u3092\u8272$1$~$ M $\u306e\u3044\u305a\u308c\u304b\u3067\u5857\u308b\u3068\u304d\uff0c\u96a3\u63a5\u304b\u3064\u540c\u8272\u306a\u30d6\u30ed\u30c3\u30af\u306e\u7d44\u304c$K$\u500b\u4ee5\u4e0b\u306b\u306a\u308b\u3088\u3046\u306a\u5857\u308a\u65b9\u306e\u7dcf\u6570\u3092$mod998244353$\u3067\u6c42\u3081\u3088\u3002 atcoder.jp \u30b3\u30f3\u30c6\u30b9\u30c8\u4e2d \u6570\u3048\u4e0a\u3052\u304c\u82e6\u624b\u3059\u304e\u3066$O(N^2 M^2)$\u306e$dp$\u304c\u6d6e\u304b\u3093\u3060\u77ac\u9593\u306b\u98db\u3070\u3057\u3066F\u306b\u884c\u304d\u307e\u3057\u305f\u3002(\u3061\u306a\u307f\u306bF\u306f\u7d50\u5c40\u89e3\u3051\u305a\u306b\u51b7\u3048\u307e\u3057\u305f\u3002) \u52d5\u7684\u8a08\u753b\u6cd5\u3067\u89e3\u304d\u305f\u3044 \u307e\u305a\uff0c\u554f\u984c\u6587\u3092\u8aad\u3080\u3068\u6b21\u306e\u3088\u3046\u306a$dp$\u304c\u6d6e\u304b\u3073\u307e\u3059\u3002 $dp[x][y][z]:=$\u5148\u982d$x$\u500b\u306e\u30d6\u30ed\u30c3\u30af\u3092\u96a3\u63a5\u304b\u3064\u540c\u8272\u306a\u7d44\u304c$y$\u7d44\u306b\u306a\u308b\u3088\u3046\u306b\uff0c$x$\u500b\u76ee\u306e\u30d6\u30ed\u30c3\u30af\u3092\u8272$z$\u3067\u5857\u308b\u3088\u3046\u306a\u2026","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/l/leafirby/20200916/20200916225341.png","width":"100%","version":"1.0","provider_name":"Hatena Blog","url":"https://eppc.hatenablog.com/entry/2020/09/16/232508","blog_title":"\u6570\u3048\u4e0a\u3052\u3092\u514b\u670d\u3057\u305f\u3044\u30d6\u30ed\u30b0"}