{"id":1840,"date":"2021-11-29T13:42:57","date_gmt":"2021-11-29T05:42:57","guid":{"rendered":"http:\/\/www.shuizilong.com\/house\/?p=1840"},"modified":"2022-12-03T16:17:21","modified_gmt":"2022-12-03T08:17:21","slug":"deltix-round-autumn-2021","status":"publish","type":"post","link":"https:\/\/www.shuizilong.com\/house\/archives\/deltix-round-autumn-2021\/","title":{"rendered":"Deltix Round, Autumn 2021"},"content":{"rendered":"<ul>\n<li><a href=\"https:\/\/codeforces.com\/contest\/1609\">https:\/\/codeforces.com\/contest\/1609<\/a><\/li>\n<li><a href=\"https:\/\/www.cnblogs.com\/qiulyqwq\/p\/15628985.html\">https:\/\/www.cnblogs.com\/qiulyqwq\/p\/15628985.html<\/a><\/li>\n<li><a href=\"https:\/\/www.bilibili.com\/video\/BV1TF41187b3\/\">https:\/\/www.bilibili.com\/video\/BV1TF41187b3\/<\/a><\/li>\n<\/ul>\n<p>\u4e8e\u662f\u6210\u529f\u7684\u5728\u7b79\u529e\u65b0\u4e00\u8f6e CF Round \u4e4b\u524d\u6253\u56de\u9ec4\u540d\u4e86\u3002\u3002\u3002\uff08\u6c42\u8f7b\u55b7\u3002\u3002\u3002<br \/>\n\u8fd9\u573a\u9898\u76ee\u4e2d\u89c4\u4e2d\u77e9\uff0c\u60f3\u4e0a\u5206\u8fd8\u662f\u633a\u5bb9\u6613\u7684\u3002\u3002\u3002<\/p>\n<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-6a07991fd481d\" 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-6a07991fd481d\"  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\/deltix-round-autumn-2021\/#Problem_A_Divide_and_Multiply\" title=\"Problem A. Divide and Multiply\">Problem A. Divide and Multiply<\/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\/deltix-round-autumn-2021\/#Problem_BE_William_the_VigilantWilliam_The_Oblivious\" title=\"Problem B\/E. William the Vigilant\/William The Oblivious\">Problem B\/E. William the Vigilant\/William The Oblivious<\/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\/deltix-round-autumn-2021\/#Problem_C_Complex_Market_Analysis\" title=\"Problem C. Complex Market Analysis\">Problem C. Complex Market Analysis<\/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\/deltix-round-autumn-2021\/#Problem_D_Social_Network\" title=\"Problem D. Social Network\">Problem D. Social Network<\/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\/deltix-round-autumn-2021\/#Problem_F_Interesting_Sections\" title=\"Problem F. Interesting Sections\">Problem F. Interesting Sections<\/a><\/li><\/ul><\/nav><\/div>\n\n<h2><span class=\"ez-toc-section\" id=\"Problem_A_Divide_and_Multiply\"><\/span>Problem A. Divide and Multiply<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u628a\u6240\u6709 2 \u56e0\u5b50\u6536\u96c6\u8d77\u6765\uff0c\u5269\u4e0b\u7684\u6570\u91cc\u6311\u4e00\u4e2a\u6700\u5927\u7684\u4e58\u4ee5\u8fd9\u4e9b 2 \u56e0\u5b50\uff0c\u518d\u52a0\u4e0a\u4f59\u4e0b\u7684\u6570\u5373\u53ef\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Problem_BE_William_the_VigilantWilliam_The_Oblivious\"><\/span>Problem B\/E. William the Vigilant\/William The Oblivious<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u8fd9\u4e24\u4e2a\u653e\u5728\u4e00\u8d77\u8bf4\uff0c\u7ed9\u5b9a\u4e00\u4e2a abc \u5b57\u7b26\u4e32\uff0c<br \/>\n\u6bcf\u6b21\u4fee\u6539\u4e00\u4e2a\u5b57\u7b26\uff0c\u95ee\u81f3\u5c11\u9700\u8981\u51e0\u6b21\u4fee\u6539\u64cd\u4f5c\uff0c\u53ef\u4ee5\u4f7f\u5f97\u8be5\u4e32\u4e2d\u4e0d\u5b58\u5728 &#8220;abc&#8221; \u6a21\u5f0f\u7684 \u5b50\u4e32\/\u5b50\u5e8f\u5217\u3002<\/p>\n<p>\u5b50\u4e32\u7684\u60c5\u51b5\u8ba8\u8bba\u8ba8\u8bba\u5373\u53ef\u3002<br \/>\n\u5b50\u5e8f\u5217\u7684\u60c5\u51b5\u5148\u89e3\u51b3\u9759\u6001\u7684\u95ee\u9898\uff0c\u7136\u540e\u7528\u7ebf\u6bb5\u6811\u7ef4\u62a4\u5373\u53ef\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Problem_C_Complex_Market_Analysis\"><\/span>Problem C. Complex Market Analysis<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5148\u7b5b\u6cd5\u505a\u7d20\u6570\u5224\u5b9a\uff0c\u7136\u540e\u6309\u7167\u6a21\u6570\u5206\u6bb5\u7ebf\u6027\u626b\u63cf\uff0c\u6bcf\u6b21\u627e\u5230\u7d20\u6570\u7684\u65f6\u5019\u770b\u4e24\u8fb9\u5404\u6709\u591a\u5c11\u4e2a 1\u3002<br \/>\n\u5047\u8bbe\u5de6\u8fb9\u548c\u53f3\u8fb9\u5206\u522b\u6709 p \u4e2a 1 \u548c q \u4e2a 1\uff0c\u90a3\u4e48\u5bf9\u7b54\u6848\u7684\u8d21\u732e\u5c31\u662f (p+1)*(q+1)-1\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Problem_D_Social_Network\"><\/span>Problem D. Social Network<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u8bfb\u9898\u9e2d\u68a8\u5de8\u5927\u3002\u3002<\/p>\n<p>\u7b2c\u4e00\u904d\u8bfb\u5b8c\u611f\u89c9\u662f\u6bcf\u6b21\u52a0\u4e00\u6761\u8fb9\uff0c\u770b\u4f20\u9012\u95ed\u5305\u91cc\u7684\u6700\u5927\u5ea6\u6570\uff0c\u8fd9\u4e2a\u53ea\u8981 DSU \u7ef4\u62a4\u8fde\u901a\u5206\u91cf\u7684\u5927\u5c0f\u5373\u53ef\u3002<br \/>\n\u5199\u5b8c\u53d1\u73b0\u6837\u4f8b\u4e0d\u5bf9\uff0c\u518d\u8bfb\u4e00\u904d\uff0c\u53d1\u73b0\u7ed9\u7684\u8fb9\u662f\u8981\u6c42\u5728\u4f20\u9012\u95ed\u5305\u4e2d\u6210\u7acb\uff0c\u5728\u6ee1\u8db3\u524d i \u7ec4\u6210\u7acb\u7684\u60c5\u51b5\u4e0b\uff0c\u81f3\u591a\u52a0 i \u6761\u8fb9\uff0c\u539f\u56fe\u4e2d\u6700\u5927\u7684\u8fde\u901a\u5206\u91cf\u5927\u5c0f\u3002<br \/>\n\u53ea\u8981\u7a0d\u5fae\u6539\u6539\uff0c\u5f00\u4e2a map \u7ef4\u62a4\u6bcf\u4e2a\u8fde\u901a\u5206\u91cf\u7684\u5927\u5c0f\uff0c\u7136\u540e\u6bcf\u6b21\u51fa\u73b0\u5197\u4f59\u6761\u4ef6\u662f\uff0c\u5c31\u53ef\u4ee5\u591a\u53d6\u4e00\u4e2a\u8fde\u901a\u5206\u91cf\uff0c\u6bcf\u6b21\u53d6\u6700\u5927\u7684\u51e0\u4e2a\u5373\u53ef\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Problem_F_Interesting_Sections\"><\/span>Problem F. Interesting Sections<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u7ed9\u5b9a\u4e00\u4e2a\u6570\u5217\uff0c\u95ee\u6709\u591a\u5c11\u7ec4\u533a\u95f4 \uff0c\u4f7f\u5f97\u533a\u95f4\u4e2d\uff0c\u6700\u5c0f\u6570\u548c\u6700\u5927\u6570\u7684\u4e8c\u8fdb\u5236\u6709\u76f8\u7b49\u6570\u76ee\u7684 1\u3002<\/p>\n<p>\u611f\u89c9\u6bd4\u8d5b\u65f6\u60f3\u504f\u4e86\uff0c\u7528\u4e86\u67d0\u79cd\u6c42\u6700\u5927\u5b50\u77e9\u9635\u7684 \u6392\u5e8f+\u63d2\u5165 \u5408\u5e76\u533a\u95f4\u7684\u65b9\u6cd5\u3002\u3002\u3002<br \/>\n\u597d\u50cf\u53ea\u8981\u666e\u901a\u7684\u5206\u6cbb\u5c31\u53ef\u4ee5\u4e86\u3002\u3002\u3002<br \/>\n\u4e0d\u8fc7\u4f3c\u4e4e\u4e5f\u53ef\u4ee5\u4e0d\u5206\u6cbb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/codeforces.com\/contest\/1609 https:\/\/www.cnblogs.com\/qiulyqwq\/p\/15628985.html https:\/\/www.bilibili.com\/video\/BV1TF41187b3\/ \u4e8e\u662f\u6210\u529f\u7684\u5728\u7b79\u529e\u65b0\u4e00\u8f6e CF Round \u4e4b\u524d\u6253\u56de\u9ec4\u540d\u4e86\u3002\u3002\u3002\uff08\u6c42\u8f7b\u55b7\u3002\u3002\u3002 \u8fd9\u573a\u9898\u76ee\u4e2d\u89c4\u4e2d\u77e9\uff0c\u60f3\u4e0a\u5206\u8fd8\u662f\u633a\u5bb9\u6613\u7684\u3002\u3002\u3002 Problem A. Divide and Multiply \u628a\u6240\u6709 2 \u56e0\u5b50\u6536\u96c6\u8d77\u6765\uff0c\u5269\u4e0b\u7684\u6570\u91cc\u6311\u4e00\u4e2a\u6700\u5927\u7684\u4e58\u4ee5\u8fd9\u4e9b 2 \u56e0\u5b50\uff0c\u518d\u52a0\u4e0a\u4f59\u4e0b\u7684\u6570\u5373\u53ef\u3002 Problem B\/E. William the Vigilant\/William The Oblivious \u8fd9\u4e24\u4e2a\u653e\u5728\u4e00\u8d77\u8bf4\uff0c\u7ed9\u5b9a\u4e00\u4e2a abc \u5b57\u7b26\u4e32\uff0c \u6bcf\u6b21\u4fee\u6539\u4e00\u4e2a\u5b57\u7b26\uff0c\u95ee\u81f3\u5c11\u9700\u8981\u51e0\u6b21\u4fee\u6539\u64cd\u4f5c\uff0c\u53ef\u4ee5\u4f7f\u5f97\u8be5\u4e32\u4e2d\u4e0d\u5b58\u5728 &#8220;abc&#8221; \u6a21\u5f0f\u7684 \u5b50\u4e32\/\u5b50\u5e8f\u5217\u3002 \u5b50\u4e32\u7684\u60c5\u51b5\u8ba8\u8bba\u8ba8\u8bba\u5373\u53ef\u3002 \u5b50\u5e8f\u5217\u7684\u60c5\u51b5\u5148\u89e3\u51b3\u9759\u6001\u7684\u95ee\u9898\uff0c\u7136\u540e\u7528\u7ebf\u6bb5\u6811\u7ef4\u62a4\u5373\u53ef\u3002 Problem C. Complex Market Analysis \u5148\u7b5b\u6cd5\u505a\u7d20\u6570\u5224\u5b9a\uff0c\u7136\u540e\u6309\u7167\u6a21\u6570\u5206\u6bb5\u7ebf\u6027\u626b\u63cf\uff0c\u6bcf\u6b21\u627e\u5230\u7d20\u6570\u7684\u65f6\u5019\u770b\u4e24\u8fb9\u5404\u6709\u591a\u5c11\u4e2a 1\u3002 \u5047\u8bbe\u5de6\u8fb9\u548c\u53f3\u8fb9\u5206\u522b\u6709 p \u4e2a 1 \u548c q \u4e2a 1\uff0c\u90a3\u4e48\u5bf9\u7b54\u6848\u7684\u8d21\u732e\u5c31\u662f (p+1)*(q+1)-1\u3002 Problem D. Social Network \u8bfb\u9898\u9e2d\u68a8\u5de8\u5927\u3002\u3002 [&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-1840","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2tdP7-tG","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/posts\/1840","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=1840"}],"version-history":[{"count":0,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/posts\/1840\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/media?parent=1840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/categories?post=1840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/tags?post=1840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}