{"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F01%2F12%2F151211\" title=\"Grouping [Educational DP Contest / DP \u307e\u3068\u3081\u30b3\u30f3\u30c6\u30b9\u30c8 U] - \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>","type":"rich","url":"https://blog.hamayanhamayan.com/entry/2019/01/12/151211","height":"190","image_url":null,"version":"1.0","title":"Grouping [Educational DP Contest / DP \u307e\u3068\u3081\u30b3\u30f3\u30c6\u30b9\u30c8 U]","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","description":"https://atcoder.jp/contests/dp/tasks/dp_u \u524d\u63d0\u77e5\u8b58 O(3^N)\u3067\u306ebitDP \u89e3\u8aac https://atcoder.jp/contests/dp/submissions/3949705\u5236\u7d04\u304b\u3089bitDP\u611f\u304c\u3042\u308b\u3002 dp[msk] := \u30b0\u30eb\u30fc\u30d7\u304c\u6c7a\u307e\u3063\u305f\u3046\u3055\u304e\u304cmsk\u3067\u3042\u308b\u5834\u5408\u306e\u70b9\u6570\u306e\u6700\u5927\u5024 dp[msk]\u3092\u78ba\u5b9a\u3055\u305b\u305f\u3044\u3068\u304d\u306b\u3001msk\u306e\u90e8\u5206\u96c6\u5408msk2\u3092\u5217\u6319\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308b\u3002 msk2 \u2282 msk\u3068\u3059\u308b\u3068\u3001dp[msk] = dp[msk - msk2] + msk2\u306e\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u308b\u4e8b\u306b\u3088\u308b\u70b9\u6570 \u3064\u307e\u308a\u3001\u3082\u3068\u3082\u3068msk-msk2\u304c\u30b0\u30eb\u30fc\u30d7\u304c\u6c7a\u307e\u3063\u3066\u3044\u308b\u2026","author_name":"hamayanhamayan","width":"100%","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"published":"2019-01-12 15:12:11","provider_name":"Hatena Blog","blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","blog_url":"https://blog.hamayanhamayan.com/"}