{"type":"rich","description":"\u554f\u984c TopCoder Statistics - Problem Statement\u540c\u3058\u9577\u3055 L \u306e\u6587\u5b57\u5217\u304c n \u500b\u4e0e\u3048\u3089\u308c\u308b\u3002\u3053\u308c\u3092\u8f9e\u66f8\u9806\u306b\u30bd\u30fc\u30c8\u3059\u308b\u306e\u3060\u304c, \u30bd\u30fc\u30c8\u306e\u4ed5\u65b9\u304c\u5c11\u3057\u7279\u6b8a\u3067, \u9577\u3055 L \u306e\u9806\u5217 p \u304c\u4e0e\u3048\u3089\u308c\u3066, p[0] \u756a\u76ee\u306e\u6587\u5b57, p[1] \u756a\u76ee\u306e\u6587\u5b57, ..., p[L-1] \u756a\u76ee\u306e\u6587\u5b57, \u3068\u3044\u3046\u9806\u756a\u3067\u30bd\u30fc\u30c8\u3053\u3068\u306b\u3059\u308b\u3002 \u9806\u5217 p \u306e\u4e0e\u3048\u65b9\u304c\u30e9\u30f3\u30c0\u30e0(L! \u901a\u308a\u3042\u308b)\u306e\u3068\u304d, 1 \u756a\u306f\u3058\u3081\u306b\u304f\u308b\u6587\u5b57\u304c i \u756a\u76ee\u306e\u6587\u5b57\u5217\u3067\u3042\u308b\u78ba\u7387\u306f\u3044\u304f\u3089\u3067\u3042\u308b\u304b\u30020 \u89e3\u6cd5 dp[i][s] = (\u96c6\u5408 s \u306e\u4e2d\u3067 i \u304c\u6700\u3082\u5148\u982d\u306b\u6765\u308b\u78ba\u7387) \u3068\u3057\u307e\u3059\u3002\u7b54\u3048\u306f, dp[0][2^n - 1]\u2026","provider_name":"Hatena Blog","url":"https://mayokoex.hatenablog.com/entry/2016/04/21/192239","blog_title":"mayoko\u2019s diary","title":"SRM 542 div1 med: StrangeDictionary2","blog_url":"https://mayokoex.hatenablog.com/","author_name":"mayokoex","author_url":"https://blog.hatena.ne.jp/mayokoex/","image_url":null,"categories":["TopCoder"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F04%2F21%2F192239\" title=\"SRM 542 div1 med: StrangeDictionary2 - 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>","height":"190","width":"100%","published":"2016-04-21 19:22:39","version":"1.0","provider_url":"https://hatena.blog"}