{"id":248,"date":"2019-09-14T16:03:04","date_gmt":"2019-09-14T08:03:04","guid":{"rendered":"https:\/\/blog.chtholly.moe\/?p=248"},"modified":"2021-08-21T18:13:28","modified_gmt":"2021-08-21T10:13:28","slug":"%e4%b8%89%e4%bd%8d%e6%95%b0%e5%af%86%e7%a0%81%e6%ad%a3%e7%a1%ae%e4%b8%a4%e4%bd%8d%e5%8d%b3%e5%8f%af%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/blog.sukasuka.cn\/?p=248","title":{"rendered":"\u5173\u4e8e\u4e09\u4f4d\u6570\u5bc6\u7801,\u6bcf\u4f4d10\u79cd\u60c5\u51b5 \u6b63\u786e\u4e24\u4f4d\u5373\u53ef\u89e3\u5f00\u7684\u4e00\u79cd\u89e3"},"content":{"rendered":"<p>(TIPS:\u672c\u89e3\u6cd5\u975e\u6700\u4f18)<\/p>\n<div>\n<div>\n<p><b>\u5bf9\u4e8e\u5bc6\u7801\u6765\u8bf4\uff0c\u8981\u4e48\u6709\u4e24\u4e2a\u5927\u4e8e\u7b49\u4e8e5\u7684\u6570\uff0c\u8981\u4e48\u6709\u4e24\u4e2a\u5c0f\u4e8e5\u7684\u6570\u3002<\/b><\/p>\n<p>\u95ee\u9898\u5316\u4e3a\u4e24\u4e2a\u5b50\u95ee\u9898\uff0c\u5206\u522b\u731c\u4ee5\u4e0a\u4e24\u79cd\u60c5\u51b5\u3002\u7b2c\u4e00\u4e2a\u60c5\u51b5\u81ea\u71363\u4e2a\u6570\u53ea\u4ece5-9\u91cc\u9009\uff0c\u7b2c\u4e8c\u4e2a\u4ece0-4\u91cc\u9009\u3002\u6ce8\u610f\u5230\uff0c\u7b2c\u4e8c\u4e2a\u7684\u89e3\u5168\u90e8\u52a05\u5c31\u53d8\u6210\u7b2c\u4e00\u4e2a\u7684\u89e3\uff0c\u4e8c\u8005\u662f\u5b8c\u5168\u7b49\u4ef7\u7684\u5b50\u95ee\u9898\u3002\u5b50\u95ee\u9898\u4e0e\u7236\u95ee\u9898\u5219\u4e0d\u540c\uff0c\u56e0\u4e3a\u5176\u635f\u574f\u7684\u90a3\u4e00\u4f4d\u662f\u5b8c\u5168\u65e0\u6cd5\u8fd0\u4f5c\u7684\uff0c\u56e0\u6b64\u65e0\u6cd5\u7ee7\u7eed\u62c6\u5206\u3002<\/p>\n<p>\u901a\u8fc7\u5bf9\u79f0\u6027\u7684\u6784\u9020\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2a25\u7684\u89e3\uff08\u4f60\u53ef\u4ee5\u7528\u7c7b\u4f3c\u5468\u671f\u6570\u5217\u7684\u65b9\u6cd5\u6765\u5b8c\u6210\u8fd9\u4e00\u6b65\uff0c\u591a\u89e3\uff09\uff0c\u6240\u4ee5\u52a0\u5728\u4e00\u8d77\u662f50\u4e2a\u3002<\/p>\n<p>\u4e3e\u4f8b\u6765\u8bf4\uff0c\u6211\u76f4\u63a5\u7ed9\u51fa<\/p>\n<p>11n 12n 13n 14n 15n 21n &#8230;.. 55n 25\u4e2a\u6570\u3002<\/p>\n<p>n\u53d6\u524d\u4e24\u4f4d\u6570\u76f8\u52a0\u540e\u9664\u4ee55\u7684\u4f59\u6570\u3002<\/p>\n<\/div>\n<p>\u4f5c\u8005\uff1a\u5f90\u7545<br \/>\n\u94fe\u63a5\uff1ahttps:\/\/www.zhihu.com\/question\/332612767\/answer\/736444586<br \/>\n\u6765\u6e90\uff1a\u77e5\u4e4e<br \/>\n\u8457\u4f5c\u6743\u5f52\u4f5c\u8005\u6240\u6709\u3002\u5546\u4e1a\u8f6c\u8f7d\u8bf7\u8054\u7cfb\u4f5c\u8005\u83b7\u5f97\u6388\u6743\uff0c\u975e\u5546\u4e1a\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\u3002<\/p>\n<\/div>\n<pre>#include&lt;bits\/stdc++.h&gt;\r\nusing namespace std;\r\nint main(){\r\n    int n;\r\n    cin&gt;&gt;n;\r\n    cout&lt;&lt;n*n\/2&lt;&lt;endl;\r\n    for(int i=1;i&lt;=n\/2;i++){\r\n\t\tfor(int j=1;j&lt;=n\/2;j++){\r\n\t\t\tint k=(i+j)%(n\/2)+1;\r\n\t\t\tcout&lt;&lt;i&lt;&lt;\" \"&lt;&lt;j&lt;&lt;\" \"&lt;&lt;k&lt;&lt;endl;\r\n\t\t\tcout&lt;&lt;i+(n\/2)&lt;&lt;\" \"&lt;&lt;j+(n\/2)&lt;&lt;\" \"&lt;&lt;k+(n\/2)&lt;&lt;endl;\r\n\t\t}\r\n\t}\r\n\treturn 0;\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>(TIPS:\u672c\u89e3\u6cd5\u975e\u6700\u4f18) \u5bf9\u4e8e\u5bc6\u7801\u6765\u8bf4\uff0c\u8981\u4e48\u6709\u4e24\u4e2a\u5927\u4e8e\u7b49\u4e8e5\u7684\u6570\uff0c\u8981\u4e48\u6709\u4e24\u4e2a\u5c0f\u4e8e5\u7684\u6570\u3002 \u95ee\u9898\u5316\u4e3a\u4e24\u4e2a\u5b50\u95ee\u9898 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,6],"tags":[],"class_list":["post-248","post","type-post","status-publish","format-standard","hentry","category-cpp","category-math-knowledge"],"_links":{"self":[{"href":"https:\/\/blog.sukasuka.cn\/index.php?rest_route=\/wp\/v2\/posts\/248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.sukasuka.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.sukasuka.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.sukasuka.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.sukasuka.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=248"}],"version-history":[{"count":3,"href":"https:\/\/blog.sukasuka.cn\/index.php?rest_route=\/wp\/v2\/posts\/248\/revisions"}],"predecessor-version":[{"id":251,"href":"https:\/\/blog.sukasuka.cn\/index.php?rest_route=\/wp\/v2\/posts\/248\/revisions\/251"}],"wp:attachment":[{"href":"https:\/\/blog.sukasuka.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.sukasuka.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.sukasuka.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}