{"id":3350,"date":"2024-09-21T22:49:39","date_gmt":"2024-09-21T14:49:39","guid":{"rendered":"https:\/\/www.shuizilong.com\/house\/?p=3350"},"modified":"2024-09-24T22:59:32","modified_gmt":"2024-09-24T14:59:32","slug":"the-2024-icpc-world-finals-astana","status":"publish","type":"post","link":"https:\/\/www.shuizilong.com\/house\/archives\/the-2024-icpc-world-finals-astana\/","title":{"rendered":"The 2024 ICPC World Finals Astana"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_65 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e38f79f18e1\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e38f79f18e1\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.shuizilong.com\/house\/archives\/the-2024-icpc-world-finals-astana\/#Problem_B_Bingo_for_the_Win\" title=\"Problem B. Bingo for the Win!\">Problem B. Bingo for the Win!<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.shuizilong.com\/house\/archives\/the-2024-icpc-world-finals-astana\/#Problem_C_Citizenship\" title=\"Problem C. Citizenship\">Problem C. Citizenship<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.shuizilong.com\/house\/archives\/the-2024-icpc-world-finals-astana\/#Problem_F_Friendly_Rivalry\" title=\"Problem F. Friendly Rivalry\">Problem F. Friendly Rivalry<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.shuizilong.com\/house\/archives\/the-2024-icpc-world-finals-astana\/#Problem_D_Doubles_Horseback_Wrestling\" title=\"Problem D. Doubles Horseback Wrestling\">Problem D. Doubles Horseback Wrestling<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.shuizilong.com\/house\/archives\/the-2024-icpc-world-finals-astana\/#Problem_J_The_Silk_Road_with_Robots\" title=\"Problem J. The Silk Road . . . with Robots!\">Problem J. The Silk Road . . . with Robots!<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.shuizilong.com\/house\/archives\/the-2024-icpc-world-finals-astana\/#Problem_I_Steppe_on_It\" title=\"Problem I. Steppe on It\">Problem I. Steppe on It<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.shuizilong.com\/house\/archives\/the-2024-icpc-world-finals-astana\/#Problem_A_Billboards\" title=\"Problem A. Billboards\">Problem A. Billboards<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.shuizilong.com\/house\/archives\/the-2024-icpc-world-finals-astana\/#Problem_H_Maxwells_Demon\" title=\"Problem H. Maxwell\u2019s Demon\">Problem H. Maxwell\u2019s Demon<\/a><\/li><\/ul><\/nav><\/div>\n\n<p>\u606d\u559c PKU \u8fde\u51a0\uff01\u592a\u5f3a\u4e86 Orz\u3002\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/codeforces.com\/blog\/entry\/134044\">https:\/\/codeforces.com\/blog\/entry\/134044<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/SnapDragon64\/ACMFinalsSolutions\/tree\/master\/finals2024\">https:\/\/github.com\/SnapDragon64\/ACMFinalsSolutions\/tree\/master\/finals2024<\/a><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Problem_B_Bingo_for_the_Win\"><\/span>Problem B. Bingo for the Win!<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u7b7e\u5230\u9898\u3002\u53ea\u9700\u8981\u679a\u4e3e\u6700\u540e\u4e00\u5f20\u724c\uff0c\u7136\u540e\u770b\u7f16\u53f7\u6700\u5927\u7684\u6709\u8fd9\u5f20\u724c\u7684\u9009\u624b\u5373\u53ef\u3002<br \/>\n\uff08\u636e\u8bf4 o1 \u4e5f\u4f1a\u8fd9\u4e2a\u9898 Orz\u3002\uff09<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Problem_C_Citizenship\"><\/span>Problem C. Citizenship<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u7b7e\u5230\u9898\u3002\u8981\u5904\u7406\u65f6\u95f4\u6233\uff0c\u4ee3\u7801\u80af\u5b9a\u6bd4\u4e0a\u4e00\u9898\u957f\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Problem_F_Friendly_Rivalry\"><\/span>Problem F. Friendly Rivalry<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4e8c\u5206\u7b54\u6848\uff0c\u7136\u540e dfs \u6c42\u51fa\u6240\u6709\u8fde\u901a\u5757\uff0c\u7136\u540e\u7c7b\u4f3c\u62d4\u6cb3\u90a3\u4e2a\u9898\uff0c\u770b\u8fd9\u4e9b\u8fde\u901a\u5757\u80fd\u5426\u51d1\u6210\u5bb9\u91cf\u4e3a n \u7684\u80cc\u5305\u3002<br \/>\n\u6700\u540e\u5355\u72ec\u6784\u9020\u4e00\u4e0b\u65b9\u6848\u5373\u53ef\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Problem_D_Doubles_Horseback_Wrestling\"><\/span>Problem D. Doubles Horseback Wrestling<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u7ed9\u5b9a n \u7ec4\u533a\u95f4\uff0c\u95ee\u53ef\u4ee5\u6700\u591a\u51d1\u51fa\u591a\u5c11\u5bf9\u533a\u95f4\uff0c\u4f7f\u5f97\u53ef\u4ee5\u4ece\u8fd9\u5bf9\u533a\u95f4\u4e2d\u5404\u53d6\u4e00\u4e2a\u6570\u548c\u4e3a\u7ed9\u5b9a\u7684 s\u3002<\/p>\n<p>\u633a\u6709\u8da3\u7684\u9898\uff0c\u9996\u5148\u4e00\u822c\u7684\u5339\u914d\u7b97\u6cd5\u80af\u5b9a\u4e0d\u884c\u4e86\uff0c\u8003\u8651\u626b\u63cf\u7ebf\u8d2a\u5fc3\u3002\u6700\u540e\u6bcf\u7ec4\u533a\u95f4\u4e2d\u4e00\u5b9a\u6709\u4e00\u4e2a\u6570\u53d6 &lt;= s\/2\uff0c\u4e0d\u59a8\u6211\u4eec\u4ece\u4e2d\u95f4\u5206\u6210\u5de6\u53f3\u4e24\u4fa7\u3002<br \/>\n\u5047\u8bbe\u6240\u6709\u5de6\u4fa7\u7684\u533a\u95f4\u90fd\u662f\u5355\u70b9\uff0c\u90a3\u4e48\u8d2a\u5fc3\u7b56\u7565\u663e\u7136\uff0c\u5c31\u5bf9\u6240\u6709\u53f3\u533a\u95f4\u8fdb\u884c\u626b\u63cf\u7ebf\uff0c\u4ece\u5927\u5230\u5c0f\u626b\u63cf\uff0c\u7136\u540e\u6bcf\u6b21\u62ff\u6f5c\u529b\u6700\u5c0f\uff0c\u4e5f\u5c31\u662f\u5de6\u7aef\u70b9\u6700\u5927\u7684\u533a\u95f4\u5373\u53ef\u3002<br \/>\n\u8003\u8651\u4e00\u822c\u60c5\u51b5\uff0c\u90a3\u4e48\u9700\u8981\u5728\u5de6\u53f3\u4e24\u4fa7\u540c\u65f6\u5411\u4e2d\u95f4\u626b\u63cf\uff0c\u8d2a\u5fc3\u7b56\u7565\u4e0d\u53d8\u3002\u6ce8\u610f\u5230\u73b0\u5728\u6709\u4e9b\u533a\u95f4\u53ef\u80fd\u4f1a\u5728\u4e24\u4fa7\u7684\u4e8b\u4ef6\u4e2d\u540c\u65f6\u5b58\u5728\uff0c\u56e0\u6b64\u9700\u8981\u5f00\u4e00\u4e2a\u5168\u5c40 used[] \u6570\u7ec4\u8bb0\u5f55\u4e00\u4e0b\uff0c\u7136\u540e\u6bcf\u6b21\u8d2a\u5fc3\u8981 while \u5faa\u73af\uff0c\u627e\u5230\u7b2c\u4e00\u4e2a\u6ca1\u7528\u8fc7\u7684\u533a\u95f4\u8fdb\u884c\u5339\u914d\u3002<br \/>\n\u6700\u540e\u518d\u628a\u5269\u4e0b\u6765\u7684\u5143\u7d20\u4e24\u4e24\u5339\u914d\u5373\u53ef\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Problem_J_The_Silk_Road_with_Robots\"><\/span>Problem J. The Silk Road . . . with Robots!<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u7ed9\u5b9a\u4e00\u4e2a\u6570\u8f74\uff0c\u7136\u540e\u4f9d\u6b21\u5b89\u6392\u4e00\u4e9b\u4e8b\u4ef6\uff0c\u8868\u793a\u67d0\u4e2a\u4f4d\u7f6e\u5237\u65b0\u4e00\u4e2a\u673a\u5668\u4eba\uff0c\u6216\u8005\u67d0\u4e2a\u4f4d\u7f6e\u5237\u65b0\u4e00\u4e2a\u6536\u76ca\u4e3a c \u7684\u8d44\u6e90\u70b9\uff0c\u673a\u5668\u4eba\u53ef\u4ee5\u82b1\u8d39 1 \u4ee3\u4ef7\u79fb\u52a8\u5355\u4f4d\u8ddd\u79bb\uff0c\u95ee\u6700\u5927\u6536\u76ca\u662f\u591a\u5c11\u3002<\/p>\n<p>\u8fd9\u4e2a\u9898\u6781\u6613\u8bfb\u9519\u3002\u3002\u6ce8\u610f\u5230\u6bcf\u4e2a\u673a\u5668\u4eba\u5c45\u7136\u53ef\u4ee5 reuse\uff0c\u90a3\u4e48\u5730\u56fe\u4e0a\u7684\u8d44\u6e90\u70b9\u5b9e\u9645\u88ab\u8fd9\u4e9b\u673a\u5668\u4eba\u8986\u76d6\uff0c\u6bcf\u4e2a\u673a\u5668\u4eba\u8986\u76d6\u4e00\u4e2a\u533a\u95f4\uff0c\u673a\u5668\u4eba\u53ef\u4ee5\u4ec5\u5de6\u3001\u4ec5\u53f3\uff0c\u6216\u8005\u5148\u5de6\u518d\u53f3\u3001\u5148\u53f3\u518d\u5de6\u56db\u79cd\u65b9\u5f0f\u6784\u6210\u533a\u95f4\u3002\u90a3\u4e48\u663e\u7136\u8fd9\u4e2a\u4e1c\u897f\u53ef\u4ee5\u7528\u7ebf\u6bb5\u6811\u7ef4\u62a4\u533a\u95f4\u6765\u52a8\u6001 dp\uff0c\u8f6c\u79fb\u7c7b\u4f3c\u77e9\u9635\u4e58\u6cd5\uff0c\u96be\u70b9\u662f\u6784\u9020\u5355\u70b9\u7684\u72b6\u6001\uff0c\u5efa\u8bae\u62c6\u6210\u533a\u95f4\u548c\u5355\u70b9\uff0c2n-1 \u4e2a\u72b6\u6001\u6765\u5904\u7406\uff0c\u53ef\u4ee5\u5199\u7684\u975e\u5e38\u5bf9\u79f0\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Problem_I_Steppe_on_It\"><\/span>Problem I. Steppe on It<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u8fd9\u4e2a\u9898\u6211\u4e5f\u8bfb\u9519\u4e86\uff0c\u8bfb\u6210 k \u4e2a\u70b9\u7136\u540e\u8ddd\u79bb\u548c\u6700\u5c0f\u4e86\uff0c\u56e7\u3002<br \/>\n\u90a3\u4e48\u53ea\u8981\u6700\u5927\u6700\u5c0f\u663e\u7136\u8fd8\u662f\u4e8c\u5206\u7b54\u6848\u6811 dp\u3002<\/p>\n<p>\u636e\u8bf4\u662f COCI \u539f\u9898\uff0chttps:\/\/www.luogu.com.cn\/problem\/P8314\uff0c\u56e7\uff0c\u8fd8\u662f\u975e\u5e38\u5bb9\u6613\u5199\u9519\u7684\u3002\u3002\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Problem_A_Billboards\"><\/span>Problem A. Billboards<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u65e0\u804a\u7684\u51e0\u4f55\u9898\uff0c\u6bcf\u4e2a\u8d5e\u52a9\u5546\u6709\u4e00\u4e2a\u5206\u6bb5\u7ebf\u6027\u51fd\u6570\u8bbe\u7f6e\u504f\u597d\uff0c\u4e14\u53ea\u9700\u8981\u5728\u5b83\u7684\u8bc4\u4ef7\u4e0b\u53d6\u4e00\u6bb5\u51fd\u6570\u503c\u5927\u4e8e 1\/n \u7684\u533a\u95f4\u5373\u53ef\u3002<br \/>\n\u6211\u4eec\u53ea\u9700\u8981\u8d2a\u5fc3\u7684\u6bcf\u6b21\u5728\u5de6\u8fb9\u627e\u6700\u77ed\u7684\u4e00\u5757\u7b26\u5408\u67d0\u4e2a\u8d5e\u52a9\u5546\u8981\u6c42\u7684\u533a\u95f4\u5373\u53ef\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Problem_H_Maxwells_Demon\"><\/span>Problem H. Maxwell\u2019s Demon<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5c01\u95ed\u7a7a\u95f4\u5206\u6210\u5de6\u53f3\u4e24\u534a\uff0c\u521d\u59cb\u6709\u4e00\u4e9b\u7c92\u5b50\uff0c\u5728\u8fb9\u7f18\u4f1a\u5b8c\u5168\u5f39\u6027\u78b0\u649e\uff0c\u4e2d\u95f4\u7684\u5899\u7684\u67d0\u4e2a\u4f4d\u7f6e\u6709\u4e00\u4e2a door\uff0c\u5230\u7c92\u5b50\u8fd0\u52a8\u5230\u95e8\u65f6\uff0c\u4f60\u53ef\u4ee5\u51b3\u5b9a\u662f\u5426\u8ba9\u5b83\u901a\u8fc7\uff0c\u5f53\u540c\u4e00\u65f6\u523b\u6709\u591a\u4e2a\u7c92\u5b50\u7ecf\u8fc7\u95e8\u65f6\uff0c\u4f60\u5fc5\u987b\u540c\u65f6\u51b3\u5b9a\u5b83\u4eec\u662f\u5426\u80fd\u591f\u901a\u8fc7\u3002\u6bcf\u4e2a\u4f8b\u5b50\u521d\u59cb\u662f\u7ea2\u8272\u6216\u8005\u84dd\u8272\uff0c\u95ee\u662f\u5426\u80fd\u8ba9\u6240\u6709\u7ea2\u8272\u7c92\u5b50\u5728\u5de6\u8fb9\uff0c\u6240\u6709\u84dd\u8272\u7c92\u5b50\u5728\u53f3\u8fb9\uff0c\u5982\u679c\u53ef\u4ee5\uff0c\u6700\u77ed\u65f6\u95f4\u662f\u591a\u5c11\u3002<\/p>\n<p>\u53d1\u73b0\u96be\u70b9\u4e3b\u8981\u662f\u7c92\u5b50\u540c\u65f6\u649e\u5230\u95e8\u7684\u60c5\u51b5\uff0c\u5047\u8bbe\u4e0d\u8003\u8651\u8fd9\u79cd\u60c5\u51b5\uff0c\u90a3\u4e48\u53ea\u8981\u7b97\u51fa\u6bcf\u4e2a\u70b9\u6700\u65e9\u649e\u5230\u95e8\u7684\u65f6\u523b\u5373\u53ef\u3002<br \/>\n\u73b0\u5728\u8003\u8651\u8fd9\u4e9b\u8fde\u643a\u7684\u60c5\u51b5\uff0c\u6211\u4eec\u53d1\u73b0\u8fd9\u4e9b\u4f8b\u5b50\u73b0\u5728\u7684\u72b6\u6001\u7ea0\u7f20\u5728\u4e86\u4e00\u8d77\uff0c\u6211\u4eec\u867d\u7136\u6ca1\u6cd5\u5728\u5f53\u524d\u65f6\u523b\u7acb\u523b\u51b3\u5b9a\u662f\u5426\u901a\u8fc7\u95e8\uff0c\u4f46\u662f\u597d\u6d88\u606f\u662f\u5426\u901a\u8fc7\u5bf9\u6211\u4eec\u7684\u8ba1\u7b97\u5f71\u54cd\u4e0d\u5927\uff0c\u56e0\u4e3a\u95e8\u7684\u4e24\u4fa7\u7684\u8fd0\u52a8\u8f68\u8ff9\u662f\u5b8c\u5168\u5bf9\u79f0\u7684\uff0c\u7c92\u5b50\u901a\u8fc7\u95e8\u4e0e\u5426\u4e0d\u4f1a\u5f71\u54cd\u8fd9\u4e9b\u4f8b\u5b50\u4e0b\u6b21\u7ecf\u8fc7\u95e8\u7684\u65f6\u523b\u3002<\/p>\n<p>\u6211\u4eec\u7528 01 \u5411\u91cf\u8868\u8fbe\u6bcf\u4e2a\u7c92\u5b50\u521d\u59cb\u662f\u5426\u9700\u8981\u7ecf\u8fc7\u4e00\u6b21\u95e8\uff0c\u90a3\u4e48\u95ee\u9898\u5c31\u53d8\u6210\u4e86\uff0c\u968f\u7740\u65f6\u95f4\u7684\u63a8\u8fdb\uff0c\u6211\u4eec\u4e0d\u65ad\u52a0\u5165\u4e00\u4e9b 01 \u5411\u91cf\uff0c\u95ee\u4f55\u65f6\u5f53\u524d\u5411\u91cf\u7ec4\u80fd\u591f\u7ebf\u6027\u8868\u793a\u51fa\u521d\u59cb\u5411\u91cf\uff0c\u800c\u8fd9\u53ea\u9700\u8981\u7ef4\u62a4\u4e00\u7ec4 xor \u5411\u91cf\u57fa\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u606d\u559c PKU \u8fde\u51a0\uff01\u592a\u5f3a\u4e86 Orz\u3002\u3002 https:\/\/codeforces.com\/blog\/entry\/134044 https:\/\/github.com\/SnapDragon64\/ACMFinalsSolutions\/tree\/master\/finals2024 Problem B. Bingo for the Win! \u7b7e\u5230\u9898\u3002\u53ea\u9700\u8981\u679a\u4e3e\u6700\u540e\u4e00\u5f20\u724c\uff0c\u7136\u540e\u770b\u7f16\u53f7\u6700\u5927\u7684\u6709\u8fd9\u5f20\u724c\u7684\u9009\u624b\u5373\u53ef\u3002 \uff08\u636e\u8bf4 o1 \u4e5f\u4f1a\u8fd9\u4e2a\u9898 Orz\u3002\uff09 Problem C. Citizenship \u7b7e\u5230\u9898\u3002\u8981\u5904\u7406\u65f6\u95f4\u6233\uff0c\u4ee3\u7801\u80af\u5b9a\u6bd4\u4e0a\u4e00\u9898\u957f\u3002 Problem F. Friendly Rivalry \u4e8c\u5206\u7b54\u6848\uff0c\u7136\u540e dfs \u6c42\u51fa\u6240\u6709\u8fde\u901a\u5757\uff0c\u7136\u540e\u7c7b\u4f3c\u62d4\u6cb3\u90a3\u4e2a\u9898\uff0c\u770b\u8fd9\u4e9b\u8fde\u901a\u5757\u80fd\u5426\u51d1\u6210\u5bb9\u91cf\u4e3a n \u7684\u80cc\u5305\u3002 \u6700\u540e\u5355\u72ec\u6784\u9020\u4e00\u4e0b\u65b9\u6848\u5373\u53ef\u3002 Problem D. Doubles Horseback Wrestling \u7ed9\u5b9a n \u7ec4\u533a\u95f4\uff0c\u95ee\u53ef\u4ee5\u6700\u591a\u51d1\u51fa\u591a\u5c11\u5bf9\u533a\u95f4\uff0c\u4f7f\u5f97\u53ef\u4ee5\u4ece\u8fd9\u5bf9\u533a\u95f4\u4e2d\u5404\u53d6\u4e00\u4e2a\u6570\u548c\u4e3a\u7ed9\u5b9a\u7684 s\u3002 \u633a\u6709\u8da3\u7684\u9898\uff0c\u9996\u5148\u4e00\u822c\u7684\u5339\u914d\u7b97\u6cd5\u80af\u5b9a\u4e0d\u884c\u4e86\uff0c\u8003\u8651\u626b\u63cf\u7ebf\u8d2a\u5fc3\u3002\u6700\u540e\u6bcf\u7ec4\u533a\u95f4\u4e2d\u4e00\u5b9a\u6709\u4e00\u4e2a\u6570\u53d6 &lt;= s\/2\uff0c\u4e0d\u59a8\u6211\u4eec\u4ece\u4e2d\u95f4\u5206\u6210\u5de6\u53f3\u4e24\u4fa7\u3002 \u5047\u8bbe\u6240\u6709\u5de6\u4fa7\u7684\u533a\u95f4\u90fd\u662f\u5355\u70b9\uff0c\u90a3\u4e48\u8d2a\u5fc3\u7b56\u7565\u663e\u7136\uff0c\u5c31\u5bf9\u6240\u6709\u53f3\u533a\u95f4\u8fdb\u884c\u626b\u63cf\u7ebf\uff0c\u4ece\u5927\u5230\u5c0f\u626b\u63cf\uff0c\u7136\u540e\u6bcf\u6b21\u62ff\u6f5c\u529b\u6700\u5c0f\uff0c\u4e5f\u5c31\u662f\u5de6\u7aef\u70b9\u6700\u5927\u7684\u533a\u95f4\u5373\u53ef\u3002 \u8003\u8651\u4e00\u822c\u60c5\u51b5\uff0c\u90a3\u4e48\u9700\u8981\u5728\u5de6\u53f3\u4e24\u4fa7\u540c\u65f6\u5411\u4e2d\u95f4\u626b\u63cf\uff0c\u8d2a\u5fc3\u7b56\u7565\u4e0d\u53d8\u3002\u6ce8\u610f\u5230\u73b0\u5728\u6709\u4e9b\u533a\u95f4\u53ef\u80fd\u4f1a\u5728\u4e24\u4fa7\u7684\u4e8b\u4ef6\u4e2d\u540c\u65f6\u5b58\u5728\uff0c\u56e0\u6b64\u9700\u8981\u5f00\u4e00\u4e2a\u5168\u5c40 used[] \u6570\u7ec4\u8bb0\u5f55\u4e00\u4e0b\uff0c\u7136\u540e\u6bcf\u6b21\u8d2a\u5fc3\u8981 while \u5faa\u73af\uff0c\u627e\u5230\u7b2c\u4e00\u4e2a\u6ca1\u7528\u8fc7\u7684\u533a\u95f4\u8fdb\u884c\u5339\u914d\u3002 \u6700\u540e\u518d\u628a\u5269\u4e0b\u6765\u7684\u5143\u7d20\u4e24\u4e24\u5339\u914d\u5373\u53ef\u3002 Problem J. The Silk Road [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[1],"tags":[],"class_list":["post-3350","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2tdP7-S2","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/posts\/3350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/comments?post=3350"}],"version-history":[{"count":7,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/posts\/3350\/revisions"}],"predecessor-version":[{"id":3357,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/posts\/3350\/revisions\/3357"}],"wp:attachment":[{"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/media?parent=3350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/categories?post=3350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/tags?post=3350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}