{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbouzuya.hatenablog.com%2Fentry%2F2024%2F03%2F04%2F235054\" title=\"PAST #16 H - bouzuya.hatenablog.com\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"bouzuya.hatenablog.com","title":"PAST #16 H","url":"https://bouzuya.hatenablog.com/entry/2024/03/04/235054","categories":[],"width":"100%","author_name":"bouzuya","provider_url":"https://hatena.blog","image_url":null,"blog_url":"https://bouzuya.hatenablog.com/","height":"190","provider_name":"Hatena Blog","version":"1.0","description":"\u7b2c16\u56de \u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u5b9f\u6280\u691c\u5b9a(\u904e\u53bb\u554f) H - \u4f11\u6687 https://atcoder.jp/contests/past16-open/tasks/past202309_h \u63d0\u51fa: https://atcoder.jp/contests/past16-open/submissions/50908040 \u7d20\u6734\u306a DP \u306a\u306e\u306b\u30d0\u30b0\u3089\u305b\u3066 4WA use proconio::input; fn main() { input! { n: usize, m: usize, a: [usize; n], } let mut dp = vec![vec![None; 2]; n + 1]; dp[0][0]\u2026","author_url":"https://blog.hatena.ne.jp/bouzuya/","published":"2024-03-04 23:50:54","type":"rich"}