{"id":442,"date":"2010-12-12T18:20:00","date_gmt":"2010-12-12T10:20:00","guid":{"rendered":"http:\/\/localhost\/?p=442"},"modified":"2010-12-12T18:20:00","modified_gmt":"2010-12-12T10:20:00","slug":"to_spoj_recently_to_do_topic","status":"publish","type":"post","link":"https:\/\/www.shuizilong.com\/wjmzbmr\/?p=442","title":{"rendered":"SPOJ \u6700\u8fd1\u505a\u7684\u9898\u76ee"},"content":{"rendered":"\n<p>\u50bb\u53c9\u9898\u5c31\u4e0d\u8bf4\u4e86\u3002\u3002<br \/><a href=\"https:\/\/www.spoj.pl\/problems\/CNTTREE\/\">Trees Again<\/a>&nbsp;<br \/>\u4ee4Dp[root][Dep]\u8868\u793a\u5b50\u6811\u6839\u4e3aroot\uff0c\u6700\u5927\u6df1\u5ea6\uff08\u4eceroot\u5f80\u4e0b\uff09\u662fDep\u7684\u4e2a\u6570\u3002\u3002<br \/>\u7136\u540e\u8003\u8651\u8ba1\u7b97\u3002\u3002\u53ef\u4ee5\u53d1\u73b0\u5b50\u6811\u7684\u72b6\u6001\u53ea\u8ddf\u6700\u6df1\u7684\u4e24\u4e2a\u8282\u70b9\u6709\u5173\u3002\u3002<br \/>\u90a3\u4e48\u679a\u4e3e\u8fd9\u4e24\u4e2a\u8282\u70b9\u548c\u5b83\u4eec\u7684\u6df1\u5ea6\u3002\u3002<br \/>\u7136\u540e\u6709\u4e00\u70b9\u5c31\u662f\u5047\u5982\u4e24\u4e2a\u8282\u70b9\u6df1\u5ea6\u4e00\u6837\u3002\u3002\u5c31\u4f1a\u6709\u91cd\u590d\u3002\u3002\u8981\u8003\u8651\u4e00\u4e0b\u3002\u3002<br \/><a href=\"https:\/\/www.spoj.pl\/problems\/ELCS\/\">Easy Longest Common Substring<\/a><br \/>\u4e8c\u5206+Hash\u3002\u3002<br \/><a href=\"https:\/\/www.spoj.pl\/problems\/TWOPATHS\/\">Two Paths<\/a><br \/>\u8ddfTREECST\u4e00\u6837\u7684\u505a\u6cd5\u3002\u3002\u9996\u5148\u4e24\u4e2a\u6761\u8def\u5f84\u5fc5\u7136\u6709\u4e00\u6761\u8fb9\u628a\u5b83\u4eec\u5206\u5f00\u3002\u3002\u90a3\u4e48\u6211\u4eec\u9700\u8981\u8ba1\u7b97\u7684\u5c31\u662f\u5bf9\u4e8e\u6bcf\u4e00\u6761\u8fb9\u3002\u3002\u5b83\u7684\u4e0a\u53d1\u5b50\u6811\u548c\u4e0b\u65b9\u5b50\u6811\u7684\u76f4\u5f84\u3002\u3002\u753b\u4e2a\u56fe\u4ed4\u7ec6\u60f3\u60f3\u5c31\u53ef\u4ee5\u5199\u51fa\u6765\u4e86\u3002\u3002\u6ce8\u610f\u5e38\u6570\u5c0f\u5fc3TLE\u3002\u3002\u3002<br \/><a href=\"https:\/\/www.spoj.pl\/problems\/DAGCNT\/\">Counting Arborescence<\/a><br \/>\u6ce8\u610f\u8fd9\u91cc\u7684\u56fe\u662f\u6709\u5411\u7684\u3002\u3002\u6240\u4ee5\u6ca1\u6cd5\u7528\u90a3\u4e2axx\u77e9\u9635\u3002\u3002\u3002<br \/>\u6240\u4ee5\u53ea\u597d\u96c6\u5408\u52a8\u6001\u89c4\u5212Dp[set][root]\u8868\u793aset\u7684\u9876\u70b9\u96c6\u5408\u3002\u3002\u4ee5root\u4e3a\u9876\u70b9\u3002\u3002\u6709\u51e0\u4e2aArboresecence\u3002\u3002\u3002<br \/>\u7136\u540e\u63a8\u4e00\u4e0b\u65b9\u7a0b\u5c31\u53ef\u4ee5\u4e86\u3002\u3002<br \/><a href=\"https:\/\/www.spoj.pl\/problems\/HIGHWAY1\/\">Highway<\/a><br \/>\u5757\u72b6\u6570\u7ec4\u3002\u3002\u6211\u8bb0\u5f97\u597d\u50cf\u662fGDOI\u7684\u9898\u76ee\uff1f<br \/><a href=\"https:\/\/www.spoj.pl\/problems\/COPYDNA\/\">Copying DNA<\/a><br \/>\u96c6\u5408DP\u3002\u3002\u8bb0\u5f55\u4e00\u4e0b\u76ee\u6807\u4e32\u54ea\u4e9b\u88ab\u8986\u76d6\u4e86\u3002\u3002\u5e38\u6570\u4f18\u5316\u4e00\u4e0b&gt;_&lt;\u3002\u3002<br \/>\u597d\u5427\u3002\u3002\u5199\u7684\u6709\u70b9\u7b80\u964b\u3002\u3002\u6709\u65f6\u95f4\u5145\u5b9e\u4e00\u4e0b\u3002\u3002\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u50bb\u53c9\u9898\u5c31\u4e0d\u8bf4\u4e86\u3002\u3002Trees Again&nbsp;\u4ee4Dp[root][Dep]\u8868\u793a\u5b50\u6811\u6839\u4e3aroot\uff0c\u6700\u5927\u6df1\u5ea6\uff08\u4eceroot\u5f80\u4e0b\uff09\u662fDep\u7684\u4e2a\u6570\u3002\u3002\u7136\u540e\u8003\u8651\u8ba1\u7b97\u3002\u3002\u53ef\u4ee5\u53d1\u73b0\u5b50\u6811\u7684\u72b6\u6001\u53ea\u8ddf\u6700\u6df1\u7684\u4e24\u4e2a\u8282\u70b9\u6709\u5173\u3002\u3002\u90a3\u4e48\u679a\u4e3e\u8fd9\u4e24\u4e2a\u8282\u70b9\u548c\u5b83\u4eec\u7684\u6df1\u5ea6\u3002\u3002\u7136\u540e\u6709\u4e00\u70b9\u5c31\u662f\u5047\u5982\u4e24\u4e2a\u8282\u70b9\u6df1\u5ea6\u4e00\u6837\u3002\u3002\u5c31\u4f1a\u6709\u91cd\u590d\u3002\u3002\u8981\u8003\u8651\u4e00\u4e0b\u3002\u3002Easy Longest Common Substring\u4e8c\u5206+Hash\u3002\u3002Two Paths\u8ddfTREECST\u4e00\u6837\u7684\u505a\u6cd5\u3002\u3002\u9996\u5148\u4e24\u4e2a\u6761\u8def\u5f84\u5fc5\u7136\u6709\u4e00\u6761\u8fb9\u628a\u5b83\u4eec\u5206\u5f00\u3002\u3002\u90a3\u4e48\u6211\u4eec\u9700\u8981\u8ba1\u7b97\u7684\u5c31\u662f\u5bf9\u4e8e\u6bcf\u4e00\u6761\u8fb9\u3002\u3002\u5b83\u7684\u4e0a\u53d1\u5b50\u6811\u548c\u4e0b\u65b9\u5b50\u6811\u7684\u76f4\u5f84\u3002\u3002\u753b\u4e2a\u56fe\u4ed4\u7ec6\u60f3\u60f3\u5c31\u53ef\u4ee5\u5199\u51fa\u6765\u4e86\u3002\u3002\u6ce8\u610f\u5e38\u6570\u5c0f\u5fc3TLE\u3002\u3002\u3002Counting Arborescence\u6ce8\u610f\u8fd9\u91cc\u7684\u56fe\u662f\u6709\u5411\u7684\u3002\u3002\u6240\u4ee5\u6ca1\u6cd5\u7528\u90a3\u4e2axx\u77e9\u9635\u3002\u3002\u3002\u6240\u4ee5\u53ea\u597d\u96c6\u5408\u52a8\u6001\u89c4\u5212Dp[set][root]\u8868\u793aset\u7684\u9876\u70b9\u96c6\u5408\u3002\u3002\u4ee5root\u4e3a\u9876\u70b9\u3002\u3002\u6709\u51e0\u4e2aArboresecence\u3002\u3002\u3002\u7136\u540e\u63a8\u4e00\u4e0b\u65b9\u7a0b\u5c31\u53ef\u4ee5\u4e86\u3002\u3002Highway\u5757\u72b6\u6570\u7ec4\u3002\u3002\u6211\u8bb0\u5f97\u597d\u50cf\u662fGDOI\u7684\u9898\u76ee\uff1fCopying DNA\u96c6\u5408DP\u3002\u3002\u8bb0\u5f55\u4e00\u4e0b\u76ee\u6807\u4e32\u54ea\u4e9b\u88ab\u8986\u76d6\u4e86\u3002\u3002\u5e38\u6570\u4f18\u5316\u4e00\u4e0b&gt;_&lt;\u3002\u3002\u597d\u5427\u3002\u3002\u5199\u7684\u6709\u70b9\u7b80\u964b\u3002\u3002\u6709\u65f6\u95f4\u5145\u5b9e\u4e00\u4e0b\u3002\u3002\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=\/wp\/v2\/posts\/442"}],"collection":[{"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=442"}],"version-history":[{"count":0,"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=\/wp\/v2\/posts\/442\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}