{"id":128,"date":"2024-04-26T13:38:47","date_gmt":"2024-04-26T05:38:47","guid":{"rendered":"https:\/\/seanxd.com\/?p=128"},"modified":"2024-04-26T13:38:49","modified_gmt":"2024-04-26T05:38:49","slug":"zerojudge-d127","status":"publish","type":"post","link":"https:\/\/seanxd.com\/zh\/zerojudge-d127\/","title":{"rendered":"ZeroJudge D127: \u7267\u5834\u9762\u7a4d"},"content":{"rendered":"\n\n\n<p class=\"\">\u5047\u5b9aZ\u5148\u751f\u8490\u96c6\u7684\u6750\u6599\u6070\u597d\u53ef\u4ee5\u4fee\u5efa<strong>\u9577\u5ea6\u70baL\u7c73\u7684\u570d\u6b04<\/strong>\uff0c\u9700\u8981\u7528\u9019\u4e9b\u570d\u6b04\u570d\u8d77\u4e00\u500b<strong>\u77e9\u5f62\u7267\u5834<\/strong>\uff0c\u70ba\u65b9\u4fbf\u6e2c\u91cf\uff0c\u8981\u6c42\u77e9\u5f62\u7684<strong>\u9577\u548c\u5bec\u90fd\u5fc5\u9808\u662f\u6574\u6578<\/strong>\uff0c\u554f\u984c\u662f\u5982\u4f55\u898f\u5283\u77e9\u5f62\u7684\u9577\u548c\u5bec\uff0c\u624d\u80fd\u4f7f\u570d\u6210\u7684<strong>\u9577\u65b9\u5f62\u7267\u5834\u7684\u9762\u7a4d\u6700\u5927<\/strong>\uff1f<\/p>\n\n\n\n<p class=\"\"><strong>\u4f8b\u5982<\/strong>\uff1a\u7576 L = 14 \u6642\uff0c\u53ef\u4ee5\u570d\u8d77\u9577\u70ba 6\u3001\u5bec\u70ba 1 \u7684\u7267\u5834\uff0c\u4e5f\u53ef\u4ee5\u4fee\u9577\u70ba 4\u3001\u5bec\u70ba 3 \u7684\u7267\u5834\uff0c\u7576\u7136\u53ef\u80fd\u9084\u6709\u5176\u4ed6\u7684\u65b9\u6cd5\uff0c\u4f46\u7b2c\u4e8c\u7a2e\u65b9\u6848\u570d\u51fa\u7684\u9762\u7a4d\u6700\u5927\uff0c\u70ba 12\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table nfd-wb-animate nfd-wb-fade-in-bottom-short\"><table class=\"has-fixed-layout\"><thead><tr><th>\u9577<\/th><th>\u5bec<\/th><th>\u9762\u7a4d<\/th><\/tr><\/thead><tbody><tr><td>6<\/td><td>1<\/td><td>6<\/td><\/tr><tr><td>4<\/td><td>3<\/td><td>12<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">L = 14 \u6642\u7684\u7267\u5834\u4e4b\u9577\u3001\u5bec\u3001\u9762\u7a4d<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u7bc4\u4f8b\u6e2c\u8cc7<\/h2>\n\n\n\n<figure class=\"wp-block-table nfd-wb-animate nfd-wb-fade-in-bottom-short nfd-delay-150\"><table class=\"has-fixed-layout\"><thead><tr><th>\u7bc4\u4f8b\u8f38\u5165<\/th><th>\u7bc4\u4f8b\u8f38\u51fa<\/th><\/tr><\/thead><tbody><tr><td><strong>EOF<\/strong> \u8f38\u5165\uff0c\u6bcf\u884c\u4e00\u500b\u6578 L (\u4fdd\u8b49 L \u662f<strong>\u5076\u6578<\/strong>)\u3002<\/td><td>\u8f38\u51fa\u7528\u9019 L \u7c73\u7684\u570d\u6b04\u6240\u80fd\u570d\u8d77<strong>\u77e9\u5f62\u7267\u5834<\/strong>\u7684<strong>\u6700\u5927\u9762\u7a4d S<\/strong>\u3002<\/td><\/tr><tr><td>14<\/td><td>12<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u984c\u601d\u8def<\/h2>\n\n\n\n<p class=\"\">\u53ef\u4f7f\u7528\u4ee5\u4e0b\u516c\u5f0f\u4f86\u89e3\u51fa\u9019\u984c\uff0c\u516c\u5f0f\u662f\u4f7f\u7528\u6b63\u6578\u6368\u53bb\u5c0f\u6578\u9ede\u6a5f\u5236\u505a\u904b\u7b97 (\u516c\u5f0f\u8a73\u898b\u7bc4\u4f8b\u7a0b\u5f0f\u78bc)\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\u672c\u984c\u9700\u8981\u4f7f\u7528 <strong>Long Long Int <\/strong>\u4f86\u505a\u8a08\u7b97\u624d\u4e0d\u6703\u6709 <strong>WA<\/strong> \u7684\u60c5\u6cc1\u51fa\u73fe\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7bc4\u4f8b\u7a0b\u5f0f\u78bc\uff0d<a href=\"https:\/\/zerojudge.tw\/ShowProblem?problemid=d127\" target=\"_blank\" rel=\"noreferrer noopener\">ZeroJudge D127: \u7267\u5834\u9762\u7a4d<\/a><\/h3>\n\n\n\n<div class=\"hcb_wrap nfd-wb-animate nfd-wb-reveal-right nfd-delay-300\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\"><code>#include &lt;iostream&gt;\nusing namespace std;\n\nint main() {\n    cin.sync_with_stdio(0);\n    cin.tie(nullptr);\n    long long int N;\n    while (cin &gt;&gt; N)\n    {\n        long long int a = N\/4;\n        long long int b = N-2*a;\n        b \/= 2;\n        cout &lt;&lt; a * b &lt;&lt; endl;\n    }\n}\n\n\/\/ZeroJudge D127\n\/\/Dr. SeanXD<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5047\u5b9aZ\u5148\u751f\u8490\u96c6\u7684\u6750\u6599\u6070\u597d\u53ef\u4ee5\u4fee\u5efa\u9577\u5ea6\u70baL\u7c73\u7684\u570d\u6b04\uff0c\u9700\u8981\u7528\u9019\u4e9b\u570d\u6b04\u570d\u8d77\u4e00\u500b\u77e9\u5f62\u7267\u5834\uff0c\u70ba\u65b9\u4fbf\u6e2c\u91cf\uff0c\u8981\u6c42\u77e9\u5f62\u7684\u9577\u548c\u5bec [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"categories":[25],"tags":[15,13],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-ioi-apcs","tag-long-long-int","tag-13"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/seanxd.com\/zh\/wp-json\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/seanxd.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/seanxd.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/seanxd.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/seanxd.com\/zh\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":3,"href":"https:\/\/seanxd.com\/zh\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/seanxd.com\/zh\/wp-json\/wp\/v2\/posts\/128\/revisions\/131"}],"wp:attachment":[{"href":"https:\/\/seanxd.com\/zh\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/seanxd.com\/zh\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/seanxd.com\/zh\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}