{"id":625,"date":"2026-07-12T14:06:12","date_gmt":"2026-07-12T06:06:12","guid":{"rendered":"https:\/\/mitongxue.cn\/?p=625"},"modified":"2026-07-12T14:06:12","modified_gmt":"2026-07-12T06:06:12","slug":"%e4%bb%8e%e5%8d%95%e5%90%91%e9%93%be%e8%a1%a8%e4%b8%ad%e5%88%a0%e9%99%a4%e6%8c%87%e5%ae%9a%e5%80%bc%e7%9a%84%e8%8a%82%e7%82%b9","status":"publish","type":"post","link":"https:\/\/mitongxue.cn\/index.php\/2026\/07\/12\/%e4%bb%8e%e5%8d%95%e5%90%91%e9%93%be%e8%a1%a8%e4%b8%ad%e5%88%a0%e9%99%a4%e6%8c%87%e5%ae%9a%e5%80%bc%e7%9a%84%e8%8a%82%e7%82%b9\/","title":{"rendered":"\u4ece\u5355\u5411\u94fe\u8868\u4e2d\u5220\u9664\u6307\u5b9a\u503c\u7684\u8282\u70b9"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u63cf\u8ff0<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><math><semantics><mrow><mspace width=\"1.5em\"><\/mspace><\/mrow><\/semantics><\/math>\u5b9a\u4e49\u4e00\u79cd\u5355\u5411\u94fe\u8868\u7684\u6784\u9020\u65b9\u6cd5\u5982\u4e0b\u6240\u793a\uff1a<br><math><semantics><mrow><mspace width=\"2.3000000000000003em\"><\/mspace><mo>\u2219<\/mo><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>\u2219\u5148\u8f93\u5165\u4e00\u4e2a\u6574\u6570&nbsp;<math><semantics><mrow><mi>n<\/mi><\/mrow><\/semantics><\/math><em>n<\/em>&nbsp;\uff0c\u4ee3\u8868\u94fe\u8868\u4e2d\u8282\u70b9\u7684\u603b\u6570\uff1b<br><math><semantics><mrow><mspace width=\"2.3000000000000003em\"><\/mspace><mo>\u2219<\/mo><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>\u2219\u518d\u8f93\u5165\u4e00\u4e2a\u6574\u6570&nbsp;<math><semantics><mrow><mi>h<\/mi><\/mrow><\/semantics><\/math><em>h<\/em>&nbsp;\uff0c\u4ee3\u8868\u5934\u8282\u70b9\u7684\u503c\uff1b<br><math><semantics><mrow><mspace width=\"2.3000000000000003em\"><\/mspace><mo>\u2219<\/mo><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>\u2219\u6b64\u540e\u8f93\u5165&nbsp;<math><semantics><mrow><mi>n<\/mi><mo>\u2212<\/mo><mn>1<\/mn><\/mrow><\/semantics><\/math><em>n<\/em>\u22121&nbsp;\u4e2a\u4e8c\u5143\u7ec4&nbsp;<math><semantics><mrow><mo fence=\"true\">(<\/mo><mi>a<\/mi><mo separator=\"true\">,<\/mo><mi>b<\/mi><mo fence=\"true\">)<\/mo><\/mrow><\/semantics><\/math>(<em>a<\/em>,<em>b<\/em>)&nbsp;\uff0c\u8868\u793a\u5728\u503c\u4e3a&nbsp;<math><semantics><mrow><mi>b<\/mi><\/mrow><\/semantics><\/math><em>b<\/em>&nbsp;\u7684\u8282\u70b9\u540e\u63d2\u5165\u503c\u4e3a&nbsp;<math><semantics><mrow><mi>a<\/mi><\/mrow><\/semantics><\/math><em>a<\/em>&nbsp;\u7684\u8282\u70b9\u3002<br><math><semantics><mrow><mspace width=\"1.5em\"><\/mspace><\/mrow><\/semantics><\/math>\u9664\u6b64\u4e4b\u5916\uff0c\u4fdd\u8bc1\u8f93\u5165\u7684\u94fe\u8868\u4e2d\u4e0d\u5b58\u5728\u91cd\u590d\u7684\u8282\u70b9\u503c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><math><semantics><mrow><mspace width=\"1.5em\"><\/mspace><\/mrow><\/semantics><\/math>\u73b0\u5728\uff0c\u5bf9\u4e8e\u7ed9\u5b9a\u7684\u94fe\u8868\u6784\u9020\u65b9\u6cd5\u548c\u4e00\u4e2a\u989d\u5916\u7684\u6574\u6570&nbsp;<math><semantics><mrow><mi>k<\/mi><\/mrow><\/semantics><\/math><em>k<\/em>&nbsp;\uff0c\u4f60\u9700\u8981\u5148\u6309\u7167\u4e0a\u8ff0\u6784\u9020\u65b9\u6cd5\u6784\u9020\u51fa\u94fe\u8868\uff0c\u968f\u540e\u5220\u9664\u503c\u4e3a&nbsp;<math><semantics><mrow><mi>k<\/mi><\/mrow><\/semantics><\/math><em>k<\/em>&nbsp;\u7684\u8282\u70b9\uff0c\u8f93\u51fa\u5269\u4f59\u7684\u94fe\u8868\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8f93\u5165\u63cf\u8ff0\uff1a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><math><semantics><mrow><mspace width=\"1.5em\"><\/mspace><\/mrow><\/semantics><\/math>\u5728\u4e00\u884c\u4e0a\uff1a<br><math><semantics><mrow><msub><mspace width=\"2em\"><\/mspace><mtext mathvariant=\"monospace\">1.<\/mtext><\/msub><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>1.\u200b\u5148\u8f93\u5165\u4e00\u4e2a\u6574\u6570&nbsp;<math><semantics><mrow><mi>n<\/mi><mrow><mo fence=\"true\">(<\/mo><mn>1<\/mn><mo>\u2266<\/mo><mi>n<\/mi><mo>\u2266<\/mo><mn>1<\/mn><msup><mn>0<\/mn><mn>3<\/mn><\/msup><mo fence=\"true\">)<\/mo><\/mrow><\/mrow><\/semantics><\/math><em>n<\/em>(1\u2266<em>n<\/em>\u2266103)&nbsp;\u4ee3\u8868\u94fe\u8868\u4e2d\u8282\u70b9\u7684\u603b\u6570\uff1b<br><math><semantics><mrow><msub><mspace width=\"2em\"><\/mspace><mtext mathvariant=\"monospace\">2.<\/mtext><\/msub><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>2.\u200b\u968f\u540e\u8f93\u5165\u4e00\u4e2a\u6574\u6570&nbsp;<math><semantics><mrow><mi>h<\/mi><mrow><mo fence=\"true\">(<\/mo><mn>1<\/mn><mo>\u2266<\/mo><mi>h<\/mi><mo>\u2266<\/mo><mn>1<\/mn><msup><mn>0<\/mn><mn>4<\/mn><\/msup><mo fence=\"true\">)<\/mo><\/mrow><\/mrow><\/semantics><\/math><em>h<\/em>(1\u2266<em>h<\/em>\u2266104)&nbsp;\u4ee3\u8868\u5934\u8282\u70b9\u7684\u503c\uff1b<br><math><semantics><mrow><msub><mspace width=\"2em\"><\/mspace><mtext mathvariant=\"monospace\">3.<\/mtext><\/msub><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>3.\u200b\u968f\u540e\u8f93\u5165&nbsp;<math><semantics><mrow><mi>n<\/mi><mo>\u2212<\/mo><mn>1<\/mn><\/mrow><\/semantics><\/math><em>n<\/em>\u22121&nbsp;\u4e2a\u4e8c\u5143\u7ec4&nbsp;<math><semantics><mrow><mrow><mo fence=\"true\">(<\/mo><mi>a<\/mi><mo separator=\"true\">,<\/mo><mi>b<\/mi><mo fence=\"true\">)<\/mo><\/mrow><mrow><mo fence=\"true\">(<\/mo><mn>1<\/mn><mo>\u2266<\/mo><mi>a<\/mi><mo separator=\"true\">,<\/mo><mi>b<\/mi><mo>\u2266<\/mo><mn>1<\/mn><msup><mn>0<\/mn><mn>4<\/mn><\/msup><mo fence=\"true\">)<\/mo><\/mrow><\/mrow><\/semantics><\/math>(<em>a<\/em>,<em>b<\/em>)(1\u2266<em>a<\/em>,<em>b<\/em>\u2266104)&nbsp;\uff1b<br><math><semantics><mrow><msub><mspace width=\"2em\"><\/mspace><mtext mathvariant=\"monospace\">4.<\/mtext><\/msub><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>4.\u200b\u6700\u540e\u8f93\u5165\u4e00\u4e2a\u6574\u6570&nbsp;<math><semantics><mrow><mi>k<\/mi><\/mrow><\/semantics><\/math><em>k<\/em>&nbsp;\uff0c\u4ee3\u8868\u9700\u8981\u5220\u9664\u7684\u8282\u70b9\u503c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><math><semantics><mrow><mspace width=\"1.5em\"><\/mspace><\/mrow><\/semantics><\/math>\u9664\u6b64\u4e4b\u5916\uff0c\u4fdd\u8bc1\u6bcf\u4e00\u4e2a&nbsp;<math><semantics><mrow><mi>b<\/mi><\/mrow><\/semantics><\/math><em>b<\/em>&nbsp;\u503c\u5728\u8f93\u5165\u524d\u5df2\u7ecf\u5b58\u5728\u4e8e\u94fe\u8868\u4e2d\uff1b\u6bcf\u4e00\u4e2a&nbsp;<math><semantics><mrow><mi>a<\/mi><\/mrow><\/semantics><\/math><em>a<\/em>&nbsp;\u503c\u5728\u8f93\u5165\u524d\u5747\u4e0d\u5b58\u5728\u4e8e\u94fe\u8868\u4e2d\u3002\u8282\u70b9\u7684\u503c\u5404\u4e0d\u76f8\u540c\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8f93\u51fa\u63cf\u8ff0\uff1a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><math><semantics><mrow><mspace width=\"1.5em\"><\/mspace><\/mrow><\/semantics><\/math>\u5728\u4e00\u884c\u4e0a\u8f93\u51fa&nbsp;<math><semantics><mrow><mi>n<\/mi><mo>\u2212<\/mo><mn>1<\/mn><\/mrow><\/semantics><\/math><em>n<\/em>\u22121&nbsp;\u4e2a\u6574\u6570\uff0c\u4ee3\u8868\u5220\u9664\u6307\u5b9a\u5143\u7d20\u540e\u5269\u4f59\u7684\u94fe\u8868\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u793a\u4f8b1<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8f93\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">5 2 3 2 4 3 5 2 1 4 3<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u590d\u5236<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8f93\u51fa\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">2 5 4 1<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u590d\u5236<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bf4\u660e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><math><semantics><mrow><mspace width=\"1.5em\"><\/mspace><\/mrow><\/semantics><\/math>\u5728\u8fd9\u4e2a\u6837\u4f8b\u4e2d\uff0c\u94fe\u8868\u7684\u6784\u9020\u8fc7\u7a0b\u5982\u4e0b\uff1a<br><math><semantics><mrow><mspace width=\"2.3000000000000003em\"><\/mspace><mo>\u2219<\/mo><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>\u2219\u5934\u8282\u70b9\u4e3a <math><semantics><mrow><mn>2<\/mn><\/mrow><\/semantics><\/math>2 \uff0c\u5f97\u5230\u94fe\u8868 <math><semantics><mrow><mo fence=\"true\">[<\/mo><mstyle mathcolor=\"orange\"><mn mathvariant=\"bold\">2<\/mn><\/mstyle><mo fence=\"true\">]<\/mo><\/mrow><\/semantics><\/math>[<strong>2<\/strong>] \uff1b<br><math><semantics><mrow><mspace width=\"2.3000000000000003em\"><\/mspace><mo>\u2219<\/mo><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>\u2219\u5728 <math><semantics><mrow><mn>2<\/mn><\/mrow><\/semantics><\/math>2 \u540e\u63d2\u5165 <math><semantics><mrow><mn>3<\/mn><\/mrow><\/semantics><\/math>3 \uff0c\u5f97\u5230\u94fe\u8868 <math><semantics><mrow><mo fence=\"true\">[<\/mo><mn>2<\/mn><mo separator=\"true\">,<\/mo><mstyle mathcolor=\"orange\"><mn mathvariant=\"bold\">3<\/mn><\/mstyle><mo fence=\"true\">]<\/mo><\/mrow><\/semantics><\/math>[2,<strong>3<\/strong>] \uff1b<br><math><semantics><mrow><mspace width=\"2.3000000000000003em\"><\/mspace><mo>\u2219<\/mo><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>\u2219\u5728 <math><semantics><mrow><mn>3<\/mn><\/mrow><\/semantics><\/math>3 \u540e\u63d2\u5165 <math><semantics><mrow><mn>4<\/mn><\/mrow><\/semantics><\/math>4 \uff0c\u5f97\u5230\u94fe\u8868 <math><semantics><mrow><mo fence=\"true\">[<\/mo><mn>2<\/mn><mo separator=\"true\">,<\/mo><mn>3<\/mn><mo separator=\"true\">,<\/mo><mstyle mathcolor=\"orange\"><mn mathvariant=\"bold\">4<\/mn><\/mstyle><mo fence=\"true\">]<\/mo><\/mrow><\/semantics><\/math>[2,3,<strong>4<\/strong>] \uff1b<br><math><semantics><mrow><mspace width=\"2.3000000000000003em\"><\/mspace><mo>\u2219<\/mo><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>\u2219\u5728 <math><semantics><mrow><mn>2<\/mn><\/mrow><\/semantics><\/math>2 \u540e\u63d2\u5165 <math><semantics><mrow><mn>5<\/mn><\/mrow><\/semantics><\/math>5 \uff0c\u5f97\u5230\u94fe\u8868 <math><semantics><mrow><mo fence=\"true\">[<\/mo><mn>2<\/mn><mo separator=\"true\">,<\/mo><mstyle mathcolor=\"orange\"><mn mathvariant=\"bold\">5<\/mn><\/mstyle><mo separator=\"true\">,<\/mo><mn>3<\/mn><mo separator=\"true\">,<\/mo><mn>4<\/mn><mo fence=\"true\">]<\/mo><\/mrow><\/semantics><\/math>[2,<strong>5<\/strong>,3,4] \uff1b<br><math><semantics><mrow><mspace width=\"2.3000000000000003em\"><\/mspace><mo>\u2219<\/mo><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>\u2219\u5728 <math><semantics><mrow><mn>4<\/mn><\/mrow><\/semantics><\/math>4 \u540e\u63d2\u5165 <math><semantics><mrow><mn>1<\/mn><\/mrow><\/semantics><\/math>1 \uff0c\u5f97\u5230\u94fe\u8868 <math><semantics><mrow><mo fence=\"true\">[<\/mo><mn>2<\/mn><mo separator=\"true\">,<\/mo><mn>5<\/mn><mo separator=\"true\">,<\/mo><mn>3<\/mn><mo separator=\"true\">,<\/mo><mn>4<\/mn><mo separator=\"true\">,<\/mo><mstyle mathcolor=\"orange\"><mn mathvariant=\"bold\">1<\/mn><\/mstyle><mo fence=\"true\">]<\/mo><\/mrow><\/semantics><\/math>[2,5,3,4,<strong>1<\/strong>] \uff1b<br><math><semantics><mrow><mspace width=\"1.5em\"><\/mspace><\/mrow><\/semantics><\/math>\u968f\u540e\uff0c\u5220\u9664\u503c\u4e3a <math><semantics><mrow><mn>3<\/mn><\/mrow><\/semantics><\/math>3 \u7684\u8282\u70b9\uff0c\u5f97\u5230\u94fe\u8868 <math><semantics><mrow><mo fence=\"true\">[<\/mo><mn>2<\/mn><mo separator=\"true\">,<\/mo><mn>5<\/mn><mo separator=\"true\">,<\/mo><mn>4<\/mn><mo separator=\"true\">,<\/mo><mn>1<\/mn><mo fence=\"true\">]<\/mo><\/mrow><\/semantics><\/math>[2,5,4,1] \u3002<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u793a\u4f8b2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8f93\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">6 2 1 2 3 2 5 1 4 5 7 2 2<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u590d\u5236<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8f93\u51fa\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">7 3 1 5 4<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u590d\u5236<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bf4\u660e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><math><semantics><mrow><mspace width=\"1.5em\"><\/mspace><\/mrow><\/semantics><\/math>\u5728\u8fd9\u4e2a\u6837\u4f8b\u4e2d\uff0c\u94fe\u8868\u7684\u6784\u9020\u8fc7\u7a0b\u5982\u4e0b\uff1a<br><math><semantics><mrow><mspace width=\"2.3000000000000003em\"><\/mspace><mo>\u2219<\/mo><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>\u2219\u5934\u8282\u70b9\u4e3a <math><semantics><mrow><mn>2<\/mn><\/mrow><\/semantics><\/math>2 \uff0c\u5f97\u5230\u94fe\u8868 <math><semantics><mrow><mo fence=\"true\">[<\/mo><mstyle mathcolor=\"orange\"><mn mathvariant=\"bold\">2<\/mn><\/mstyle><mo fence=\"true\">]<\/mo><\/mrow><\/semantics><\/math>[<strong>2<\/strong>] \uff1b<br><math><semantics><mrow><mspace width=\"2.3000000000000003em\"><\/mspace><mo>\u2219<\/mo><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>\u2219\u5728 <math><semantics><mrow><mn>2<\/mn><\/mrow><\/semantics><\/math>2 \u540e\u63d2\u5165 <math><semantics><mrow><mn>1<\/mn><\/mrow><\/semantics><\/math>1 \uff0c\u5f97\u5230\u94fe\u8868 <math><semantics><mrow><mo fence=\"true\">[<\/mo><mn>2<\/mn><mo separator=\"true\">,<\/mo><mstyle mathcolor=\"orange\"><mn mathvariant=\"bold\">1<\/mn><\/mstyle><mo fence=\"true\">]<\/mo><\/mrow><\/semantics><\/math>[2,<strong>1<\/strong>] \uff1b<br><math><semantics><mrow><mspace width=\"2.3000000000000003em\"><\/mspace><mo>\u2219<\/mo><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>\u2219\u5728 <math><semantics><mrow><mn>2<\/mn><\/mrow><\/semantics><\/math>2 \u540e\u63d2\u5165 <math><semantics><mrow><mn>3<\/mn><\/mrow><\/semantics><\/math>3 \uff0c\u5f97\u5230\u94fe\u8868 <math><semantics><mrow><mo fence=\"true\">[<\/mo><mn>2<\/mn><mo separator=\"true\">,<\/mo><mstyle mathcolor=\"orange\"><mn mathvariant=\"bold\">3<\/mn><\/mstyle><mo separator=\"true\">,<\/mo><mn>1<\/mn><mo fence=\"true\">]<\/mo><\/mrow><\/semantics><\/math>[2,<strong>3<\/strong>,1] \uff1b<br><math><semantics><mrow><mspace width=\"2.3000000000000003em\"><\/mspace><mo>\u2219<\/mo><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>\u2219\u5728 <math><semantics><mrow><mn>1<\/mn><\/mrow><\/semantics><\/math>1 \u540e\u63d2\u5165 <math><semantics><mrow><mn>5<\/mn><\/mrow><\/semantics><\/math>5 \uff0c\u5f97\u5230\u94fe\u8868 <math><semantics><mrow><mo fence=\"true\">[<\/mo><mn>2<\/mn><mo separator=\"true\">,<\/mo><mn>3<\/mn><mo separator=\"true\">,<\/mo><mn>1<\/mn><mo separator=\"true\">,<\/mo><mstyle mathcolor=\"orange\"><mn mathvariant=\"bold\">5<\/mn><\/mstyle><mo fence=\"true\">]<\/mo><\/mrow><\/semantics><\/math>[2,3,1,<strong>5<\/strong>] \uff1b<br><math><semantics><mrow><mspace width=\"2.3000000000000003em\"><\/mspace><mo>\u2219<\/mo><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>\u2219\u5728 <math><semantics><mrow><mn>5<\/mn><\/mrow><\/semantics><\/math>5 \u540e\u63d2\u5165 <math><semantics><mrow><mn>4<\/mn><\/mrow><\/semantics><\/math>4 \uff0c\u5f97\u5230\u94fe\u8868 <math><semantics><mrow><mo fence=\"true\">[<\/mo><mn>2<\/mn><mo separator=\"true\">,<\/mo><mn>3<\/mn><mo separator=\"true\">,<\/mo><mn>1<\/mn><mo separator=\"true\">,<\/mo><mn>5<\/mn><mo separator=\"true\">,<\/mo><mstyle mathcolor=\"orange\"><mn mathvariant=\"bold\">4<\/mn><\/mstyle><mo fence=\"true\">]<\/mo><\/mrow><\/semantics><\/math>[2,3,1,5,<strong>4<\/strong>] \uff1b<br><math><semantics><mrow><mspace width=\"2.3000000000000003em\"><\/mspace><mo>\u2219<\/mo><mtext>\u2009<\/mtext><\/mrow><\/semantics><\/math>\u2219\u5728 <math><semantics><mrow><mn>2<\/mn><\/mrow><\/semantics><\/math>2 \u540e\u63d2\u5165 <math><semantics><mrow><mn>7<\/mn><\/mrow><\/semantics><\/math>7 \uff0c\u5f97\u5230\u94fe\u8868 <math><semantics><mrow><mo fence=\"true\">[<\/mo><mn>2<\/mn><mo separator=\"true\">,<\/mo><mstyle mathcolor=\"orange\"><mn mathvariant=\"bold\">7<\/mn><\/mstyle><mo separator=\"true\">,<\/mo><mn>3<\/mn><mo separator=\"true\">,<\/mo><mn>1<\/mn><mo separator=\"true\">,<\/mo><mn>5<\/mn><mo separator=\"true\">,<\/mo><mn>4<\/mn><mo fence=\"true\">]<\/mo><\/mrow><\/semantics><\/math>[2,<strong>7<\/strong>,3,1,5,4] \uff1b<br><math><semantics><mrow><mspace width=\"1.5em\"><\/mspace><\/mrow><\/semantics><\/math>\u968f\u540e\uff0c\u5220\u9664\u503c\u4e3a <math><semantics><mrow><mn>2<\/mn><\/mrow><\/semantics><\/math>2 \u7684\u8282\u70b9\uff0c\u5f97\u5230\u94fe\u8868 <math><semantics><mrow><mo fence=\"true\">[<\/mo><mn>7<\/mn><mo separator=\"true\">,<\/mo><mn>3<\/mn><mo separator=\"true\">,<\/mo><mn>1<\/mn><mo separator=\"true\">,<\/mo><mn>5<\/mn><mo separator=\"true\">,<\/mo><mn>4<\/mn><mo fence=\"true\">]<\/mo><\/mrow><\/semantics><\/math>[7,3,1,5,4] \u3002<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u91c7\u7528\u94fe\u8868\u7ed3\u6784\uff0c\u7ed3\u6784\u5316\u6570\u636e<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>const allArr = (await readline()).split(\" \").map(Number);\n    \/\/console.log(allArr,'allArr');\n    const &#91;size,headVal,...arr] = allArr\n    const k = arr.pop();\n    let ptr = 0;\n    const hash = new Map();\n    const head = new LinkNode(headVal);\n    hash.set(headVal, head);\n    \/\/console.log(arr);\n    for(let i=0;i&lt;size-1;i++){\n        const a = arr&#91;ptr++];\n        const b = arr&#91;ptr++];\n        \n        const newNode = new LinkNode(a);\n        const parentNode = hash.get(b);\n        \/\/\u5c06\u8001\u7684\u8282\u70b9\u63a5\u5165\u65b0\u8282\u70b9\u540e\u9762\n        newNode.next = parentNode.next;\n        parentNode.next = newNode;\n        hash.set(a, newNode);\n    }<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c01\u88c5\u5220\u9664\u529f\u80fd<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u5220\u9664\n    const removeLink=(link,delVal)=>{\n        let cur = link;\n        const curVal = link.val;\n        if(curVal === delVal){\n            link = {};\n        }\n       \/\/ console.log(cur,'cur');\n        while(cur.next){\n            const tempCur = cur.next;\n            const tempVal = tempCur.val; \n            \/\/console.log(tempCur,'tempVal');\n            if(tempVal === delVal){\n                \/\/console.log(\"\u5220\u9664\",delVal);\n                const nextNode = tempCur.next;\n                if(nextNode){\n                    \/\/console.log(\"\u5220\u9664\");\n                    cur.next = nextNode;\n                }else{  \n                    cur.next = null;\n                }\n            }else{\n                cur = tempCur;\n            }\n        }\n    }\n    \/\/console.log(k,'k');\n    removeLink(head,k);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b8c\u6574<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function LinkNode(x){\n    this.val = x;\n    this.next = null;\n}\n\nvoid async function () {\n    \/\/ Write your code here\n    const allArr = (await readline()).split(\" \").map(Number);\n    \/\/console.log(allArr,'allArr');\n    const &#91;size,headVal,...arr] = allArr\n    const k = arr.pop();\n    let ptr = 0;\n    const hash = new Map();\n    const head = new LinkNode(headVal);\n    hash.set(headVal, head);\n    \/\/console.log(arr);\n    for(let i=0;i&lt;size-1;i++){\n        const a = arr&#91;ptr++];\n        const b = arr&#91;ptr++];\n        \n        const newNode = new LinkNode(a);\n        const parentNode = hash.get(b);\n        \/\/\u5c06\u8001\u7684\u8282\u70b9\u63a5\u5165\u65b0\u8282\u70b9\u540e\u9762\n        newNode.next = parentNode.next;\n        parentNode.next = newNode;\n        hash.set(a, newNode);\n    }\n    \/\/console.log(JSON.stringify(head));\n\n    \/\/\u5220\u9664\n    const removeLink=(link,delVal)=>{\n        let cur = link;\n        const curVal = link.val;\n        if(curVal === delVal){\n            link = {};\n        }\n       \/\/ console.log(cur,'cur');\n        while(cur.next){\n            const tempCur = cur.next;\n            const tempVal = tempCur.val; \n            \/\/console.log(tempCur,'tempVal');\n            if(tempVal === delVal){\n                \/\/console.log(\"\u5220\u9664\",delVal);\n                const nextNode = tempCur.next;\n                if(nextNode){\n                    \/\/console.log(\"\u5220\u9664\");\n                    cur.next = nextNode;\n                }else{  \n                    cur.next = null;\n                }\n            }else{\n                cur = tempCur;\n            }\n        }\n    }\n    \/\/console.log(k,'k');\n    removeLink(head,k);\n    \/\/console.log(JSON.stringify(head));\n    const res = &#91;];\n    let itear = head;\n    while(itear){\n        \/\/console.log(itear.val);\n        res.push(itear.val);\n        const temp = itear.next;\n        itear = temp;\n    }\n    console.log(res.join(\" \"));\n}()<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u91c7\u7528\u6570\u7ec4\u65b9\u5f0f<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>\nvoid async function () {\n    let &#91;total,head,...arr] = (await readline()).split(' ');\n    let remove = arr.pop(),link = &#91;head];\n    while(arr.length){\n        let &#91;tail,head,...rest] = arr;\n        arr = rest;\n        let index = link.indexOf(head);\n        link.splice(index+1,0,tail);\n    }\n    let i = link.indexOf(remove);\n    link.splice(i,1);\n    console.log(link.join(' '))\n\n}()<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63cf\u8ff0 \u5b9a\u4e49\u4e00\u79cd\u5355\u5411\u94fe\u8868\u7684\u6784\u9020\u65b9\u6cd5\u5982\u4e0b\u6240\u793a\uff1a\u2219\u2009\u2219\u5148..<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,11,51],"tags":[],"class_list":["post-625","post","type-post","status-publish","format-standard","hentry","category-js","category-front","category-51"],"featured_image_urls":{"full":"","thumbnail":"","medium":"","medium_large":"","large":"","1536x1536":"","2048x2048":""},"author_info":{"info":["\u9648 \u67d0\u4eba"]},"category_info":"<a href=\"https:\/\/mitongxue.cn\/index.php\/category\/front\/js\/\" rel=\"category tag\">JS<\/a> <a href=\"https:\/\/mitongxue.cn\/index.php\/category\/front\/\" rel=\"category tag\">\u524d\u7aef<\/a> <a href=\"https:\/\/mitongxue.cn\/index.php\/category\/front\/%e7%89%9b%e5%ae%a2\/\" rel=\"category tag\">\u725b\u5ba2<\/a>","tag_info":"\u725b\u5ba2","comment_count":"0","_links":{"self":[{"href":"https:\/\/mitongxue.cn\/index.php\/wp-json\/wp\/v2\/posts\/625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mitongxue.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mitongxue.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mitongxue.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mitongxue.cn\/index.php\/wp-json\/wp\/v2\/comments?post=625"}],"version-history":[{"count":1,"href":"https:\/\/mitongxue.cn\/index.php\/wp-json\/wp\/v2\/posts\/625\/revisions"}],"predecessor-version":[{"id":626,"href":"https:\/\/mitongxue.cn\/index.php\/wp-json\/wp\/v2\/posts\/625\/revisions\/626"}],"wp:attachment":[{"href":"https:\/\/mitongxue.cn\/index.php\/wp-json\/wp\/v2\/media?parent=625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mitongxue.cn\/index.php\/wp-json\/wp\/v2\/categories?post=625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mitongxue.cn\/index.php\/wp-json\/wp\/v2\/tags?post=625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}