{"id":123113,"date":"2026-11-06T12:48:56","date_gmt":"2026-11-06T04:48:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/123113.html"},"modified":"2026-11-06T12:48:56","modified_gmt":"2026-11-06T04:48:56","slug":"c%e8%af%ad%e8%a8%80%e7%a8%8b%e5%ba%8f%e8%ae%be%e8%ae%a1%e9%a2%98%ef%bd%9c%e6%9c%89%e5%ba%8f%e6%95%b0%e7%bb%84%e6%8f%92%e5%85%a5%e6%95%b0%e5%ad%97%e5%86%92%e6%b3%a1%e6%8e%92%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/123113.html","title":{"rendered":"C\u8bed\u8a00\u7a0b\u5e8f\u8bbe\u8ba1\u9898\uff5c\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u6570\u5b57\u5192\u6ce1\u6392\u5e8f"},"content":{"rendered":"<h2>C\u8bed\u8a00\u7a0b\u5e8f\u8bbe\u8ba1\u9898&#xff5c;\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u6570\u5b57\u5192\u6ce1\u6392\u5e8f<\/h2>\n<h3>\u9898\u76ee<\/h3>\n<p>\u6709\u4e00\u4e2a\u5df2\u7ecf\u6392\u597d\u5e8f\u7684\u6570\u7ec4 a[11] &#061; {1,5,6,7,13,22,27,37,38,45}&#xff08;\u539f\u670910\u4e2a\u5347\u5e8f\u5143\u7d20&#xff0c;\u9884\u75591\u4e2a\u4f4d\u7f6e&#xff09;\u3002<br \/>\n\u8f93\u5165\u4e00\u4e2a\u6570&#xff0c;\u5c06\u6570\u5b57\u653e\u5230\u6570\u7ec4\u672b\u5c3e&#xff0c;\u518d\u4f7f\u7528\u5192\u6ce1\u6392\u5e8f&#xff0c;\u5b9e\u73b0\u6574\u4f53\u5347\u5e8f&#xff0c;\u6700\u540e\u8f93\u51fa\u6570\u7ec4\u3002<\/p>\n<p>\u8bf4\u660e&#xff1a;\u9898\u76ee\u672c\u610f\u662f\u201c\u627e\u5230\u4f4d\u7f6e\u63d2\u5165\u201d&#xff1b;\u5982\u679c\u4f60\u8981\u6c42\u7528\u5192\u6ce1\u6392\u5e8f\u5b9e\u73b0&#xff0c;\u601d\u8def\u662f&#xff1a;\u5148\u628a\u6570\u5b57\u653e\u5230\u6570\u7ec4\u6700\u540e&#xff0c;\u518d\u5bf9\u5168\u90e811\u4e2a\u5143\u7d20\u5192\u6ce1\u5347\u5e8f\u3002<\/p>\n<h3>\u5b8c\u6574\u4ee3\u7801<\/h3>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;stdio.h&gt;<\/span><\/span><br \/>\n<span class=\"token keyword\">int<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">int<\/span> a<span class=\"token punctuation\">[<\/span><span class=\"token number\">11<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">5<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">6<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">7<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">13<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">22<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">27<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">37<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">38<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">45<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">int<\/span> num<span class=\"token punctuation\">,<\/span> i<span class=\"token punctuation\">,<\/span> j<span class=\"token punctuation\">,<\/span> temp<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u8bf7\u8f93\u5165\u8981\u63d2\u5165\u7684\u6574\u6570&#xff1a;&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token function\">scanf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;%d&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token operator\">&amp;<\/span>num<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u7b2c\u4e00\u6b65&#xff1a;\u628a\u8f93\u5165\u7684\u6570\u653e\u5230\u6570\u7ec4\u6700\u540e\u4e00\u4e2a\u4f4d\u7f6e<\/span><br \/>\n    a<span class=\"token punctuation\">[<\/span><span class=\"token number\">10<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> num<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u7b2c\u4e8c\u6b65&#xff1a;\u5192\u6ce1\u6392\u5e8f&#xff0c;\u5bf9\u5168\u90e811\u4e2a\u5143\u7d20\u5347\u5e8f\u6392\u5217<\/span><br \/>\n    <span class=\"token keyword\">for<\/span><span class=\"token punctuation\">(<\/span>i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">10<\/span><span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">for<\/span><span class=\"token punctuation\">(<\/span>j <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> j <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">10<\/span> <span class=\"token operator\">&#8211;<\/span> i<span class=\"token punctuation\">;<\/span> j<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token keyword\">if<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">[<\/span>j<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&gt;<\/span> a<span class=\"token punctuation\">[<\/span>j<span class=\"token operator\">&#043;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><br \/>\n            <span class=\"token punctuation\">{<\/span><br \/>\n                temp <span class=\"token operator\">&#061;<\/span> a<span class=\"token punctuation\">[<\/span>j<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n                a<span class=\"token punctuation\">[<\/span>j<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> a<span class=\"token punctuation\">[<\/span>j<span class=\"token operator\">&#043;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n                a<span class=\"token punctuation\">[<\/span>j<span class=\"token operator\">&#043;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> temp<span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u7b2c\u4e09\u6b65&#xff1a;\u8f93\u51fa\u63d2\u5165\u6392\u5e8f\u540e\u7684\u6570\u7ec4<\/span><br \/>\n    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u5904\u7406\u540e\u7684\u6709\u5e8f\u6570\u7ec4&#xff1a;\\\\n&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">for<\/span><span class=\"token punctuation\">(<\/span>i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">11<\/span><span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;%d &#034;<\/span><span class=\"token punctuation\">,<\/span> a<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\\\\n&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h3>\u4ee3\u7801\u9010\u884c\u8bb2\u89e3&#xff08;\u5c0f\u767d\u7248&#xff09;<\/h3>\n<p>\u4e0b\u9762\u628a\u8fd9\u6bb5\u4ee3\u7801\u62c6\u6210\u51e0\u5757&#xff0c;\u4e00\u5757\u4e00\u5757\u5730\u770b&#xff0c;\u770b\u5b8c\u4f60\u5c31\u80fd\u81ea\u5df1\u5199\u51fa\u6765\u4e86\u3002<\/p>\n<h4>1. \u5934\u6587\u4ef6\u4e0e\u53d8\u91cf\u58f0\u660e<\/h4>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;stdio.h&gt;<\/span><\/span><br \/>\n<span class=\"token keyword\">int<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">int<\/span> a<span class=\"token punctuation\">[<\/span><span class=\"token number\">11<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">5<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">6<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">7<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">13<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">22<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">27<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">37<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">38<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">45<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">int<\/span> num<span class=\"token punctuation\">,<\/span> i<span class=\"token punctuation\">,<\/span> j<span class=\"token punctuation\">,<\/span> temp<span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>#include &lt;stdio.h&gt;&#xff1a;\u544a\u8bc9\u7f16\u8bd1\u5668\u201c\u6211\u8981\u7528\u8f93\u5165\u8f93\u51fa\u529f\u80fd\u201d&#xff0c;printf \u548c scanf \u90fd\u6765\u81ea\u8fd9\u91cc\u3002<\/li>\n<li>int main()&#xff1a;\u7a0b\u5e8f\u7684\u5165\u53e3&#xff0c;C \u7a0b\u5e8f\u4ece main \u7684\u7b2c\u4e00\u884c\u5f00\u59cb\u6267\u884c\u3002<\/li>\n<li>int a[11] &#061; {&#8230;}&#xff1a;\u5b9a\u4e49\u4e00\u4e2a\u80fd\u88c5 11 \u4e2a\u6574\u6570\u7684\u6570\u7ec4&#xff0c;\u524d 10 \u4e2a\u4f4d\u7f6e\u586b\u597d\u4e86\u5347\u5e8f\u6570\u5b57&#xff0c;\u7b2c 11 \u4e2a\u4f4d\u7f6e&#xff08;\u4e0b\u6807 10&#xff09;\u6682\u65f6\u662f 0&#xff0c;\u7559\u7ed9\u65b0\u6570\u5b57\u3002<\/li>\n<li>num \u5b58\u7528\u6237\u8f93\u5165\u7684\u6570&#xff0c;i\u3001j \u662f\u5faa\u73af\u8ba1\u6570\u5668&#xff0c;temp \u662f\u4ea4\u6362\u4e24\u4e2a\u6570\u65f6\u7684\u201c\u4e34\u65f6\u4e2d\u8f6c\u7ad9\u201d\u3002<\/li>\n<\/ul>\n<p>\u5c0f\u77e5\u8bc6&#xff1a;C \u8bed\u8a00\u6570\u7ec4\u4e0b\u6807\u4ece 0 \u5f00\u59cb&#xff0c;\u6240\u4ee5 11 \u4e2a\u5143\u7d20\u7684\u4e0b\u6807\u662f 0 ~ 10&#xff0c;\u6700\u540e\u4e00\u4e2a\u5c31\u662f a[10]\u3002<\/p>\n<h4>2. \u8bfb\u5165\u8981\u63d2\u5165\u7684\u6570\u5b57<\/h4>\n<p>    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u8bf7\u8f93\u5165\u8981\u63d2\u5165\u7684\u6574\u6570&#xff1a;&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token function\">scanf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;%d&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token operator\">&amp;<\/span>num<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>printf \u53ea\u662f\u5728\u5c4f\u5e55\u4e0a\u6253\u5370\u4e00\u53e5\u63d0\u793a&#xff0c;\u4e0d\u5f71\u54cd\u903b\u8f91\u3002<\/li>\n<li>scanf(&#034;%d&#034;, &amp;num) \u4ece\u952e\u76d8\u8bfb\u4e00\u4e2a\u6574\u6570\u5b58\u8fdb num\u3002\u6ce8\u610f &amp; \u4e0d\u80fd\u4e22&#xff0c;\u5b83\u8868\u793a\u201c\u628a\u503c\u653e\u5230\u8fd9\u4e2a\u53d8\u91cf\u7684\u5730\u5740\u91cc\u201d\u3002<\/li>\n<\/ul>\n<h4>3. \u628a\u65b0\u6570\u5b57\u653e\u5230\u6570\u7ec4\u672b\u5c3e<\/h4>\n<p>    a<span class=\"token punctuation\">[<\/span><span class=\"token number\">10<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> num<span class=\"token punctuation\">;<\/span><\/p>\n<p>\u8fd9\u4e00\u6b65\u5c31\u662f\u9898\u76ee\u8981\u6c42\u7684\u201c\u653e\u5230\u6570\u7ec4\u672b\u5c3e\u201d\u3002\u6b64\u65f6\u6570\u7ec4\u53d8\u6210 11 \u4e2a\u5143\u7d20&#xff0c;\u4f46\u987a\u5e8f\u53ef\u80fd\u88ab\u6253\u4e71\u2014\u2014\u6bd4\u5982\u8f93\u5165 3&#xff0c;\u6570\u7ec4\u5c31\u662f 1,5,6,7,13,22,27,37,38,45,3&#xff0c;3 \u660e\u663e\u4e0d\u5728\u6b63\u786e\u4f4d\u7f6e\u3002<\/p>\n<h4>4. \u5192\u6ce1\u6392\u5e8f&#xff1a;\u628a 11 \u4e2a\u6570\u91cd\u65b0\u6392\u597d<\/h4>\n<p>    <span class=\"token keyword\">for<\/span><span class=\"token punctuation\">(<\/span>i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">10<\/span><span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">for<\/span><span class=\"token punctuation\">(<\/span>j <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> j <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">10<\/span> <span class=\"token operator\">&#8211;<\/span> i<span class=\"token punctuation\">;<\/span> j<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token keyword\">if<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">[<\/span>j<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&gt;<\/span> a<span class=\"token punctuation\">[<\/span>j<span class=\"token operator\">&#043;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><br \/>\n            <span class=\"token punctuation\">{<\/span><br \/>\n                temp <span class=\"token operator\">&#061;<\/span> a<span class=\"token punctuation\">[<\/span>j<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n                a<span class=\"token punctuation\">[<\/span>j<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> a<span class=\"token punctuation\">[<\/span>j<span class=\"token operator\">&#043;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n                a<span class=\"token punctuation\">[<\/span>j<span class=\"token operator\">&#043;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> temp<span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5192\u6ce1\u6392\u5e8f\u7684\u6838\u5fc3\u601d\u60f3&#xff1a;\u76f8\u90bb\u4e24\u4e2a\u6570\u6bd4\u8f83&#xff0c;\u5927\u7684\u5f80\u540e\u632a&#xff0c;\u4e00\u8f6e\u4e0b\u6765\u6700\u5927\u7684\u6570\u5c31\u201c\u5192\u201d\u5230\u4e86\u6700\u540e\u3002<\/p>\n<ul>\n<li>\u5916\u5c42 i \u63a7\u5236\u201c\u8dd1\u51e0\u8f6e\u201d\u300211 \u4e2a\u6570\u6700\u591a\u9700\u8981 10 \u8f6e&#xff0c;\u6240\u4ee5 i &lt; 10\u3002<\/li>\n<li>\u5185\u5c42 j \u63a7\u5236\u201c\u8fd9\u4e00\u8f6e\u6bd4\u8f83\u5230\u54ea\u201d\u3002\u56e0\u4e3a\u6bcf\u8dd1\u5b8c\u4e00\u8f6e&#xff0c;\u672b\u5c3e\u5c31\u591a\u4e00\u4e2a\u5df2\u7ecf\u6392\u597d\u7684\u6570&#xff0c;\u6240\u4ee5\u6bd4\u8f83\u8303\u56f4\u9010\u8f6e\u7f29\u5c0f&#xff1a;j &lt; 10 &#8211; i\u3002<\/li>\n<li>if(a[j] &gt; a[j&#043;1])&#xff1a;\u5982\u679c\u524d\u4e00\u4e2a\u6bd4\u540e\u4e00\u4e2a\u5927&#xff0c;\u8bf4\u660e\u987a\u5e8f\u53cd\u4e86&#xff0c;\u9700\u8981\u4ea4\u6362\u3002<\/li>\n<li>\u4ea4\u6362\u4e09\u884c\u662f\u56fa\u5b9a\u5957\u8def&#xff0c;\u5fc5\u987b\u501f\u52a9 temp&#xff1a;<\/li>\n<\/ul>\n<p>temp <span class=\"token operator\">&#061;<\/span> a<span class=\"token punctuation\">[<\/span>j<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span>      <span class=\"token comment\">\/\/ \u5148\u628a a[j] \u5b58\u8d77\u6765<\/span><br \/>\na<span class=\"token punctuation\">[<\/span>j<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> a<span class=\"token punctuation\">[<\/span>j<span class=\"token operator\">&#043;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span>    <span class=\"token comment\">\/\/ \u628a\u5c0f\u7684\u632a\u5230\u524d\u9762<\/span><br \/>\na<span class=\"token punctuation\">[<\/span>j<span class=\"token operator\">&#043;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> temp<span class=\"token punctuation\">;<\/span>    <span class=\"token comment\">\/\/ \u628a\u5b58\u8d77\u6765\u7684\u5927\u7684\u653e\u5230\u540e\u9762<\/span><\/p>\n<p>\u4e3a\u4ec0\u4e48\u4e0d\u80fd\u76f4\u63a5 a[j] &#061; a[j&#043;1]; a[j&#043;1] &#061; a[j];&#xff1f;\u56e0\u4e3a\u7b2c\u4e00\u53e5\u6267\u884c\u5b8c&#xff0c;a[j] \u539f\u6765\u7684\u503c\u5c31\u88ab\u8986\u76d6\u4e86&#xff0c;\u7b2c\u4e8c\u53e5\u62ff\u5230\u7684\u5df2\u7ecf\u662f\u65b0\u503c&#xff0c;\u7b49\u4e8e\u6ca1\u6362\u3002\u6240\u4ee5\u5fc5\u987b\u7528 temp \u6682\u5b58\u3002<\/p>\n<h4>5. \u8f93\u51fa\u7ed3\u679c<\/h4>\n<p>    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u5904\u7406\u540e\u7684\u6709\u5e8f\u6570\u7ec4&#xff1a;\\\\n&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">for<\/span><span class=\"token punctuation\">(<\/span>i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">11<\/span><span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;%d &#034;<\/span><span class=\"token punctuation\">,<\/span> a<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\\\\n&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>\u5faa\u73af i \u4ece 0 \u5230 10&#xff0c;\u6b63\u597d\u904d\u5386 11 \u4e2a\u5143\u7d20\u3002<\/li>\n<li>printf(&#034;%d &#034;, a[i]) \u4e2d %d \u662f\u6574\u6570\u7684\u5360\u4f4d\u7b26&#xff0c;\u540e\u9762\u8ddf\u4e00\u4e2a\u7a7a\u683c&#xff0c;\u8ba9\u6570\u5b57\u4e4b\u95f4\u5206\u5f00\u3002<\/li>\n<li>\u6700\u540e\u7684 printf(&#034;\\\\n&#034;) \u6362\u884c&#xff0c;return 0 \u8868\u793a\u7a0b\u5e8f\u6b63\u5e38\u7ed3\u675f\u3002<\/li>\n<\/ul>\n<h4>6. \u8dd1\u4e00\u904d\u770b\u770b<\/h4>\n<p>\u5047\u8bbe\u8f93\u5165 20&#xff1a;<\/p>\n<table>\n<tr>\u6b65\u9aa4\u6570\u7ec4\u5185\u5bb9<\/tr>\n<tbody>\n<tr>\n<td>\u521d\u59cb<\/td>\n<td>1, 5, 6, 7, 13, 22, 27, 37, 38, 45, 0<\/td>\n<\/tr>\n<tr>\n<td>\u653e\u5165\u672b\u5c3e<\/td>\n<td>1, 5, 6, 7, 13, 22, 27, 37, 38, 45, 20<\/td>\n<\/tr>\n<tr>\n<td>\u5192\u6ce1\u6392\u5e8f\u540e<\/td>\n<td>1, 5, 6, 7, 13, 20, 22, 27, 37, 38, 45<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8f93\u51fa&#xff1a;1 5 6 7 13 20 22 27 37 38 45<\/p>\n<h4>7. \u51e0\u4e2a\u65b0\u624b\u5e38\u8e29\u7684\u5751<\/h4>\n<ul>\n<li>\u6570\u7ec4\u8d8a\u754c&#xff1a;a[11] \u53ea\u6709\u4e0b\u6807 0~10&#xff0c;\u5199 a[11] \u5c31\u8d8a\u754c\u4e86&#xff0c;\u53ef\u80fd\u5d29\u6e83\u6216\u8f93\u51fa\u4e71\u7801\u3002<\/li>\n<li>\u5faa\u73af\u8fb9\u754c\u5199\u9519&#xff1a;\u5185\u5c42\u5199\u6210 j &lt; 11 &#8211; i \u4f1a\u8bbf\u95ee a[11]&#xff0c;\u540c\u6837\u8d8a\u754c&#xff1b;\u6b63\u786e\u662f j &lt; 10 &#8211; i\u3002<\/li>\n<li>\u5fd8\u4e86 &amp;&#xff1a;scanf(&#034;%d&#034;, num) \u4f1a\u8bfb\u4e0d\u5230\u503c\u751a\u81f3\u5d29\u6e83\u3002<\/li>\n<li>\u4ea4\u6362\u4e0d\u7528 temp&#xff1a;\u4e24\u4e2a\u6570\u4f1a\u53d8\u6210\u4e00\u6837&#xff0c;\u6392\u5e8f\u7ed3\u679c\u9519\u8bef\u3002<\/li>\n<li>\u53ea\u6392 10 \u4e2a\u5143\u7d20&#xff1a;\u5982\u679c\u5faa\u73af\u5199\u6210 i &lt; 9 \u6216\u8f93\u51fa\u53ea\u5230 i &lt; 10&#xff0c;\u6700\u540e\u4e00\u4e2a\u6570\u5c31\u6f0f\u6389\u4e86\u3002<\/li>\n<\/ul>\n<h4>8. \u4e0d\u7528\u5192\u6ce1\u6392\u5e8f\u7684\u89e3\u9898\u601d\u8def<\/h4>\n<p>\u5982\u679c\u9898\u76ee\u6ca1\u6709\u5f3a\u5236\u8981\u6c42\u5192\u6ce1\u6392\u5e8f&#xff0c;\u5176\u5b9e\u8fd9\u9053\u9898\u7684\u672c\u8d28\u662f\u300c\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u300d&#xff0c;\u4e0d\u9700\u8981\u628a 11 \u4e2a\u6570\u91cd\u65b0\u6392\u4e00\u904d\u3002\u6838\u5fc3\u601d\u8def\u53ea\u6709\u4e00\u53e5\u8bdd&#xff1a;\u4ece\u540e\u5f80\u524d\u627e\u4f4d\u7f6e&#xff0c;\u8fb9\u627e\u8fb9\u628a\u5143\u7d20\u5f80\u540e\u632a&#xff0c;\u627e\u5230\u7a7a\u4f4d\u5c31\u628a\u65b0\u6570\u5b57\u653e\u8fdb\u53bb\u3002<\/p>\n<h5>\u601d\u8def\u62c6\u89e3<\/h5>\n<li>\u786e\u5b9a\u8d77\u70b9&#xff1a;\u539f\u6570\u7ec4\u6709 10 \u4e2a\u6709\u6548\u5143\u7d20&#xff0c;\u4e0b\u6807\u662f 0 ~ 9&#xff0c;\u65b0\u6570\u5b57\u6700\u7ec8\u8981\u653e\u5230\u4e0b\u6807 10 \u7684\u4f4d\u7f6e&#xff0c;\u6240\u4ee5\u4ece i &#061; 9 \u5f00\u59cb\u5f80\u524d\u770b\u3002<\/li>\n<li>\u6bd4\u8f83\u5e76\u540e\u79fb&#xff1a;\u53ea\u8981 a[i] \u6bd4 num \u5927&#xff0c;\u8bf4\u660e num \u5e94\u8be5\u6392\u5728\u5b83\u524d\u9762&#xff0c;\u4e8e\u662f\u628a a[i] \u5f80\u540e\u632a\u4e00\u4f4d&#xff08;a[i&#043;1] &#061; a[i]&#xff09;&#xff0c;\u7136\u540e i&#8211; \u7ee7\u7eed\u5f80\u524d\u6bd4\u3002<\/li>\n<li>\u627e\u5230\u7a7a\u4f4d&#xff1a;\u5f53\u9047\u5230\u4e00\u4e2a\u4e0d\u5927\u4e8e num \u7684\u5143\u7d20&#xff0c;\u6216\u8005 i \u5df2\u7ecf\u51cf\u5230 -1&#xff08;\u8bf4\u660e num \u6bd4\u6240\u6709\u5143\u7d20\u90fd\u5c0f&#xff09;&#xff0c;\u5faa\u73af\u7ed3\u675f&#xff0c;\u6b64\u65f6 a[i&#043;1] \u5c31\u662f num \u8be5\u5f85\u7684\u4f4d\u7f6e\u3002<\/li>\n<li>\u653e\u5165\u65b0\u6570\u5b57&#xff1a;\u6267\u884c a[i&#043;1] &#061; num&#xff0c;\u63d2\u5165\u5b8c\u6210&#xff0c;\u6570\u7ec4\u4f9d\u7136\u4fdd\u6301\u5347\u5e8f\u3002<\/li>\n<h5>\u7528\u56fe\u7406\u89e3<\/h5>\n<p>#mermaid-svg-A4DYyQIuQ9lBOUhp{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-A4DYyQIuQ9lBOUhp .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-A4DYyQIuQ9lBOUhp .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-A4DYyQIuQ9lBOUhp .error-icon{fill:#552222;}#mermaid-svg-A4DYyQIuQ9lBOUhp .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-A4DYyQIuQ9lBOUhp .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-A4DYyQIuQ9lBOUhp .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-A4DYyQIuQ9lBOUhp .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-A4DYyQIuQ9lBOUhp .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-A4DYyQIuQ9lBOUhp .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-A4DYyQIuQ9lBOUhp .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-A4DYyQIuQ9lBOUhp .marker{fill:#333333;stroke:#333333;}#mermaid-svg-A4DYyQIuQ9lBOUhp .marker.cross{stroke:#333333;}#mermaid-svg-A4DYyQIuQ9lBOUhp svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-A4DYyQIuQ9lBOUhp p{margin:0;}#mermaid-svg-A4DYyQIuQ9lBOUhp .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-A4DYyQIuQ9lBOUhp .cluster-label text{fill:#333;}#mermaid-svg-A4DYyQIuQ9lBOUhp .cluster-label span{color:#333;}#mermaid-svg-A4DYyQIuQ9lBOUhp .cluster-label span p{background-color:transparent;}#mermaid-svg-A4DYyQIuQ9lBOUhp .label text,#mermaid-svg-A4DYyQIuQ9lBOUhp span{fill:#333;color:#333;}#mermaid-svg-A4DYyQIuQ9lBOUhp .node rect,#mermaid-svg-A4DYyQIuQ9lBOUhp .node circle,#mermaid-svg-A4DYyQIuQ9lBOUhp .node ellipse,#mermaid-svg-A4DYyQIuQ9lBOUhp .node polygon,#mermaid-svg-A4DYyQIuQ9lBOUhp .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-A4DYyQIuQ9lBOUhp .rough-node .label text,#mermaid-svg-A4DYyQIuQ9lBOUhp .node .label text,#mermaid-svg-A4DYyQIuQ9lBOUhp .image-shape .label,#mermaid-svg-A4DYyQIuQ9lBOUhp .icon-shape .label{text-anchor:middle;}#mermaid-svg-A4DYyQIuQ9lBOUhp .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-A4DYyQIuQ9lBOUhp .rough-node .label,#mermaid-svg-A4DYyQIuQ9lBOUhp .node .label,#mermaid-svg-A4DYyQIuQ9lBOUhp .image-shape .label,#mermaid-svg-A4DYyQIuQ9lBOUhp .icon-shape .label{text-align:center;}#mermaid-svg-A4DYyQIuQ9lBOUhp .node.clickable{cursor:pointer;}#mermaid-svg-A4DYyQIuQ9lBOUhp .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-A4DYyQIuQ9lBOUhp .arrowheadPath{fill:#333333;}#mermaid-svg-A4DYyQIuQ9lBOUhp .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-A4DYyQIuQ9lBOUhp .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-A4DYyQIuQ9lBOUhp .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-A4DYyQIuQ9lBOUhp .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-A4DYyQIuQ9lBOUhp .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-A4DYyQIuQ9lBOUhp .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-A4DYyQIuQ9lBOUhp .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-A4DYyQIuQ9lBOUhp .cluster text{fill:#333;}#mermaid-svg-A4DYyQIuQ9lBOUhp .cluster span{color:#333;}#mermaid-svg-A4DYyQIuQ9lBOUhp div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-A4DYyQIuQ9lBOUhp .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-A4DYyQIuQ9lBOUhp rect.text{fill:none;stroke-width:0;}#mermaid-svg-A4DYyQIuQ9lBOUhp .icon-shape,#mermaid-svg-A4DYyQIuQ9lBOUhp .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-A4DYyQIuQ9lBOUhp .icon-shape p,#mermaid-svg-A4DYyQIuQ9lBOUhp .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-A4DYyQIuQ9lBOUhp .icon-shape .label rect,#mermaid-svg-A4DYyQIuQ9lBOUhp .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-A4DYyQIuQ9lBOUhp .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-A4DYyQIuQ9lBOUhp .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-A4DYyQIuQ9lBOUhp :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u662f<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5426<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8f93\u5165 num<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>i &#061; 9&#xff08;\u4ece\u6700\u540e\u4e00\u4e2a\u6709\u6548\u5143\u7d20\u5f00\u59cb&#xff09;<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>i &gt;&#061; 0 \u4e14 a[i] &gt; num ?<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>a[i&#043;1] &#061; a[i]&#xff08;\u5143\u7d20\u540e\u79fb\u4e00\u4f4d&#xff09;<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>i&#8211;<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>a[i&#043;1] &#061; num&#xff08;\u653e\u5165\u7a7a\u4f4d&#xff09;<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8f93\u51fa 11 \u4e2a\u5143\u7d20<\/p>\n<p><\/span><\/p>\n<h5>\u4e3e\u4e2a\u4f8b\u5b50<\/h5>\n<p>\u539f\u6570\u7ec4 1,5,6,7,13,22,27,37,38,45&#xff0c;\u8f93\u5165 20&#xff1a;<\/p>\n<table>\n<tr>\u6b65\u9aa4i\u6bd4\u8f83\u52a8\u4f5c\u6570\u7ec4\u53d8\u5316<\/tr>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>9<\/td>\n<td>45 &gt; 20<\/td>\n<td>45 \u540e\u79fb<\/td>\n<td>&#8230;,38,45,45<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>8<\/td>\n<td>38 &gt; 20<\/td>\n<td>38 \u540e\u79fb<\/td>\n<td>&#8230;,37,38,45<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>7<\/td>\n<td>37 &gt; 20<\/td>\n<td>37 \u540e\u79fb<\/td>\n<td>&#8230;,27,37,38<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>6<\/td>\n<td>27 &gt; 20<\/td>\n<td>27 \u540e\u79fb<\/td>\n<td>&#8230;,22,27,37<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>5<\/td>\n<td>22 &gt; 20<\/td>\n<td>22 \u540e\u79fb<\/td>\n<td>&#8230;,13,22,27<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>4<\/td>\n<td>13 &gt; 20 \u4e0d\u6210\u7acb<\/td>\n<td>\u505c\u6b62<\/td>\n<td>\u7a7a\u4f4d\u5728\u4e0b\u6807 5<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>\u2014<\/td>\n<td>\u2014<\/td>\n<td>a[5] &#061; 20<\/td>\n<td>1,5,6,7,13,20,22,27,37,38,45<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6574\u4e2a\u8fc7\u7a0b\u53ea\u6bd4\u8f83\u4e86 6 \u6b21\u3001\u79fb\u52a8\u4e86 5 \u6b21&#xff0c;\u6bd4\u5192\u6ce1\u6392\u5e8f\u5feb\u5f97\u591a\u3002<\/p>\n<h5>\u4e3a\u4ec0\u4e48\u8fd9\u6837\u662f\u5bf9\u7684<\/h5>\n<p>\u56e0\u4e3a\u539f\u6570\u7ec4\u5df2\u7ecf\u6709\u5e8f&#xff0c;\u6240\u6709\u6bd4 num \u5927\u7684\u5143\u7d20\u4e00\u5b9a\u8fde\u7eed\u5730\u6392\u5728\u6570\u7ec4\u5c3e\u90e8\u3002\u628a\u5b83\u4eec\u6574\u4f53\u540e\u79fb\u4e00\u4f4d&#xff0c;\u4e2d\u95f4\u81ea\u7136\u5c31\u7a7a\u51fa\u4e00\u4e2a\u4f4d\u7f6e&#xff0c;\u800c\u8fd9\u4e2a\u4f4d\u7f6e\u6070\u597d\u6ee1\u8db3\u300c\u5de6\u8fb9\u90fd\u4e0d\u5927\u4e8e num&#xff0c;\u53f3\u8fb9\u90fd\u4e0d\u5c0f\u4e8e num\u300d&#xff0c;\u63d2\u5165\u540e\u6570\u7ec4\u4ecd\u7136\u6709\u5e8f\u3002<\/p>\n<h5>\u9700\u8981\u6ce8\u610f\u7684\u8fb9\u754c<\/h5>\n<ul>\n<li>num \u6bd4\u6240\u6709\u5143\u7d20\u90fd\u5c0f&#xff1a;i \u4f1a\u4e00\u8def\u51cf\u5230 -1&#xff0c;\u5faa\u73af\u56e0 i &gt;&#061; 0 \u4e0d\u6210\u7acb\u800c\u9000\u51fa&#xff0c;\u6b64\u65f6 a[0] &#061; num&#xff0c;\u6b63\u786e\u3002<\/li>\n<li>num \u6bd4\u6240\u6709\u5143\u7d20\u90fd\u5927&#xff1a;\u7b2c\u4e00\u6b21\u6bd4\u8f83\u5c31\u4e0d\u6210\u7acb&#xff0c;a[10] &#061; num&#xff0c;\u76f8\u5f53\u4e8e\u76f4\u63a5\u653e\u5230\u672b\u5c3e&#xff0c;\u4e5f\u6b63\u786e\u3002<\/li>\n<li>i &gt;&#061; 0 \u4e0d\u80fd\u7701&#xff1a;\u5c11\u4e86\u5b83&#xff0c;\u5f53 num \u6700\u5c0f\u65f6\u4f1a\u8bbf\u95ee a[-1]&#xff0c;\u5c5e\u4e8e\u8d8a\u754c&#xff0c;\u53ef\u80fd\u5d29\u6e83\u6216\u4ea7\u751f\u4e71\u7801\u3002<\/li>\n<\/ul>\n<h5>\u4e09\u79cd\u5199\u6cd5\u600e\u4e48\u9009<\/h5>\n<table>\n<tr>\u5199\u6cd5\u65f6\u95f4\u590d\u6742\u5ea6\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>\u653e\u5230\u672b\u5c3e &#043; \u5192\u6ce1\u6392\u5e8f<\/td>\n<td>O(n\u00b2)<\/td>\n<td>\u9898\u76ee\u660e\u786e\u8981\u6c42\u7ec3\u4e60\u6392\u5e8f<\/td>\n<\/tr>\n<tr>\n<td>\u4ece\u540e\u5f80\u524d\u627e\u4f4d\u7f6e\u63d2\u5165<\/td>\n<td>O(n)<\/td>\n<td>\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u7684\u6807\u51c6\u89e3\u6cd5<\/td>\n<\/tr>\n<tr>\n<td>\u627e\u5230\u4f4d\u7f6e\u540e\u6574\u4f53\u540e\u79fb&#xff08;\u5148\u627e\u518d\u79fb&#xff09;<\/td>\n<td>O(n)<\/td>\n<td>\u601d\u8def\u66f4\u76f4\u89c2&#xff0c;\u4f46\u8981\u591a\u5199\u4e00\u4e2a\u5faa\u73af<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5c0f\u7ed3&#xff1a;\u8fd9\u9053\u9898\u7684\u5173\u952e\u4e0d\u662f\u300c\u6392\u5e8f\u300d&#xff0c;\u800c\u662f\u300c\u63d2\u5165\u300d\u3002\u53ea\u8981\u6293\u4f4f\u300c\u6570\u7ec4\u6709\u5e8f\u300d\u8fd9\u4e2a\u6761\u4ef6&#xff0c;\u5c31\u80fd\u628a O(n\u00b2) \u7684\u6392\u5e8f\u4f18\u5316\u6210 O(n) \u7684\u4e00\u8d9f\u626b\u63cf\u3002<\/p>\n<h4>8. \u66f4\u7b80\u6d01\u7684\u65b9\u6848&#xff08;\u63a8\u8350\u638c\u63e1&#xff09;<\/h4>\n<p>\u9898\u76ee\u8981\u6c42\u7528\u5192\u6ce1\u6392\u5e8f&#xff0c;\u65f6\u95f4\u590d\u6742\u5ea6\u662f O(n\u00b2)\u3002\u4f46\u65e2\u7136\u539f\u6570\u7ec4\u5df2\u7ecf\u6709\u5e8f&#xff0c;\u5176\u5b9e\u6ca1\u5fc5\u8981\u5168\u90e8\u91cd\u6392\u2014\u2014\u4ece\u540e\u5f80\u524d\u627e\u4f4d\u7f6e&#xff0c;\u8fb9\u627e\u8fb9\u540e\u79fb&#xff0c;\u4e00\u8d9f\u5c31\u80fd\u641e\u5b9a&#xff0c;\u65f6\u95f4\u590d\u6742\u5ea6 O(n)\u3002<\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;stdio.h&gt;<\/span><\/span><br \/>\n<span class=\"token keyword\">int<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">int<\/span> a<span class=\"token punctuation\">[<\/span><span class=\"token number\">11<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">5<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">6<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">7<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">13<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">22<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">27<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">37<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">38<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">45<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">int<\/span> num<span class=\"token punctuation\">,<\/span> i<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u8bf7\u8f93\u5165\u8981\u63d2\u5165\u7684\u6574\u6570&#xff1a;&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token function\">scanf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;%d&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token operator\">&amp;<\/span>num<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u4ece\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u5f00\u59cb&#xff0c;\u6bd4 num \u5927\u7684\u90fd\u5f80\u540e\u632a\u4e00\u4f4d<\/span><br \/>\n    i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">9<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span>i <span class=\"token operator\">&gt;&#061;<\/span> <span class=\"token number\">0<\/span> <span class=\"token operator\">&amp;&amp;<\/span> a<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&gt;<\/span> num<span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n        a<span class=\"token punctuation\">[<\/span>i<span class=\"token operator\">&#043;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> a<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        i<span class=\"token operator\">&#8212;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token comment\">\/\/ \u7a7a\u51fa\u6765\u7684\u4f4d\u7f6e\u653e num<\/span><br \/>\n    a<span class=\"token punctuation\">[<\/span>i<span class=\"token operator\">&#043;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> num<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u5904\u7406\u540e\u7684\u6709\u5e8f\u6570\u7ec4&#xff1a;\\\\n&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">for<\/span><span class=\"token punctuation\">(<\/span>i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">11<\/span><span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;%d &#034;<\/span><span class=\"token punctuation\">,<\/span> a<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\\\\n&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u6838\u5fc3\u5c31\u4e09\u884c&#xff1a;<\/p>\n<p><span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span>i <span class=\"token operator\">&gt;&#061;<\/span> <span class=\"token number\">0<\/span> <span class=\"token operator\">&amp;&amp;<\/span> a<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&gt;<\/span> num<span class=\"token punctuation\">)<\/span>   <span class=\"token comment\">\/\/ \u4ece\u540e\u5f80\u524d\u627e\u7b2c\u4e00\u4e2a\u4e0d\u5927\u4e8e num \u7684\u4f4d\u7f6e<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    a<span class=\"token punctuation\">[<\/span>i<span class=\"token operator\">&#043;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> a<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span>            <span class=\"token comment\">\/\/ \u6bd4 num \u5927\u7684\u5143\u7d20\u6574\u4f53\u540e\u79fb\u4e00\u4f4d<\/span><br \/>\n    i<span class=\"token operator\">&#8212;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\na<span class=\"token punctuation\">[<\/span>i<span class=\"token operator\">&#043;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> num<span class=\"token punctuation\">;<\/span>                 <span class=\"token comment\">\/\/ \u7a7a\u4f4d\u5c31\u662f num \u8be5\u5f85\u7684\u5730\u65b9<\/span><\/p>\n<p>\u5bf9\u6bd4\u4e00\u4e0b\u4e24\u79cd\u5199\u6cd5&#xff1a;<\/p>\n<table>\n<tr>\u5bf9\u6bd4\u9879\u5192\u6ce1\u6392\u5e8f\u7248\u63d2\u5165\u7248&#xff08;\u672c\u65b9\u6848&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>\u65f6\u95f4\u590d\u6742\u5ea6<\/td>\n<td>O(n\u00b2)<\/td>\n<td>O(n)<\/td>\n<\/tr>\n<tr>\n<td>\u6bd4\u8f83\u6b21\u6570<\/td>\n<td>\u7ea6 55 \u6b21<\/td>\n<td>\u6700\u591a 10 \u6b21<\/td>\n<\/tr>\n<tr>\n<td>\u79fb\u52a8\u6b21\u6570<\/td>\n<td>\u5927\u91cf\u4ea4\u6362<\/td>\n<td>\u6700\u591a 10 \u6b21\u540e\u79fb<\/td>\n<\/tr>\n<tr>\n<td>\u4ee3\u7801\u957f\u5ea6<\/td>\n<td>\u8f83\u957f<\/td>\n<td>\u66f4\u77ed<\/td>\n<\/tr>\n<tr>\n<td>\u9002\u7528\u573a\u666f<\/td>\n<td>\u7ec3\u4e60\u5faa\u73af\u4e0e\u4ea4\u6362<\/td>\n<td>\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u7684\u6807\u51c6\u89e3\u6cd5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8\u610f&#xff1a;while \u91cc\u7684 i &gt;&#061; 0 \u4e0d\u80fd\u7701\u3002\u5982\u679c\u8f93\u5165\u7684\u6570\u6bd4\u6240\u6709\u5143\u7d20\u90fd\u5c0f&#xff08;\u6bd4\u5982 0&#xff09;&#xff0c;i \u4f1a\u4e00\u8def\u51cf\u5230 -1&#xff0c;\u6b64\u65f6 a[i&#043;1] \u6b63\u597d\u662f a[0]&#xff0c;\u628a num \u653e\u5728\u6700\u524d\u9762&#xff0c;\u903b\u8f91\u4f9d\u7136\u6b63\u786e&#xff1b;\u4f46\u5c11\u4e86\u8fd9\u4e2a\u5224\u65ad\u5c31\u4f1a\u8d8a\u754c\u8bbf\u95ee a[-1]\u3002<\/p>\n<p>\u5982\u679c\u9898\u76ee\u6ca1\u6709\u5f3a\u5236\u8981\u6c42\u5192\u6ce1\u6392\u5e8f&#xff0c;\u8fd9\u4e2a\u5199\u6cd5\u66f4\u7b26\u5408\u201c\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u201d\u7684\u672c\u610f&#xff0c;\u4e5f\u66f4\u503c\u5f97\u8bb0\u4f4f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C\u8bed\u8a00\u7a0b\u5e8f\u8bbe\u8ba1\u9898&#xff5c;\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u6570\u5b57\u5192\u6ce1\u6392\u5e8f<br \/>\n\u9898\u76ee<br \/>\n\u6709\u4e00\u4e2a\u5df2\u7ecf\u6392\u597d\u5e8f\u7684\u6570\u7ec4 a[11]  {1,5,6,7,13,22,27,37,38,45}&#xff08;\u539f\u670910\u4e2a\u5347\u5e8f\u5143\u7d20&#xff0c;\u9884\u75591\u4e2a\u4f4d\u7f6e&#xff09;\u3002<br \/>\n\u8f93\u5165\u4e00\u4e2a\u6570&#xff0c;\u5c06\u6570\u5b57\u653e\u5230\u6570\u7ec4\u672b\u5c3e&#xff0c;\u518d\u4f7f\u7528\u5192\u6ce1\u6392\u5e8f&#xff0c;\u5b9e\u73b0\u6574\u4f53\u5347\u5e8f&#xff0c;\u6700\u540e\u8f93\u51fa\u6570\u7ec4\u3002\u8bf4\u660e&#xff1a;\u9898\u76ee\u672c\u610f\u662f\u201c\u627e\u5230\u4f4d\u7f6e\u63d2\u5165\u201d&#xff1b;\u5982\u679c\u4f60\u8981\u6c42\u7528\u5192\u6ce1\u6392\u5e8f\u5b9e\u73b0&#xff0c;\u601d\u8def\u662f&amp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[174,1813,427],"topic":[],"class_list":["post-123113","post","type-post","status-publish","format-standard","hentry","category-server","tag-c","tag-1813","tag-427"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C\u8bed\u8a00\u7a0b\u5e8f\u8bbe\u8ba1\u9898\uff5c\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u6570\u5b57\u5192\u6ce1\u6392\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/123113.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C\u8bed\u8a00\u7a0b\u5e8f\u8bbe\u8ba1\u9898\uff5c\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u6570\u5b57\u5192\u6ce1\u6392\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"C\u8bed\u8a00\u7a0b\u5e8f\u8bbe\u8ba1\u9898&#xff5c;\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u6570\u5b57\u5192\u6ce1\u6392\u5e8f \u9898\u76ee \u6709\u4e00\u4e2a\u5df2\u7ecf\u6392\u597d\u5e8f\u7684\u6570\u7ec4 a[11] {1,5,6,7,13,22,27,37,38,45}&#xff08;\u539f\u670910\u4e2a\u5347\u5e8f\u5143\u7d20&#xff0c;\u9884\u75591\u4e2a\u4f4d\u7f6e&#xff09;\u3002 \u8f93\u5165\u4e00\u4e2a\u6570&#xff0c;\u5c06\u6570\u5b57\u653e\u5230\u6570\u7ec4\u672b\u5c3e&#xff0c;\u518d\u4f7f\u7528\u5192\u6ce1\u6392\u5e8f&#xff0c;\u5b9e\u73b0\u6574\u4f53\u5347\u5e8f&#xff0c;\u6700\u540e\u8f93\u51fa\u6570\u7ec4\u3002\u8bf4\u660e&#xff1a;\u9898\u76ee\u672c\u610f\u662f\u201c\u627e\u5230\u4f4d\u7f6e\u63d2\u5165\u201d&#xff1b;\u5982\u679c\u4f60\u8981\u6c42\u7528\u5192\u6ce1\u6392\u5e8f\u5b9e\u73b0&#xff0c;\u601d\u8def\u662f&amp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/123113.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-06T04:48:56+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/123113.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/123113.html\",\"name\":\"C\u8bed\u8a00\u7a0b\u5e8f\u8bbe\u8ba1\u9898\uff5c\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u6570\u5b57\u5192\u6ce1\u6392\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-06T04:48:56+00:00\",\"dateModified\":\"2026-11-06T04:48:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/123113.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/123113.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/123113.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C\u8bed\u8a00\u7a0b\u5e8f\u8bbe\u8ba1\u9898\uff5c\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u6570\u5b57\u5192\u6ce1\u6392\u5e8f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C\u8bed\u8a00\u7a0b\u5e8f\u8bbe\u8ba1\u9898\uff5c\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u6570\u5b57\u5192\u6ce1\u6392\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/123113.html","og_locale":"zh_CN","og_type":"article","og_title":"C\u8bed\u8a00\u7a0b\u5e8f\u8bbe\u8ba1\u9898\uff5c\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u6570\u5b57\u5192\u6ce1\u6392\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"C\u8bed\u8a00\u7a0b\u5e8f\u8bbe\u8ba1\u9898&#xff5c;\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u6570\u5b57\u5192\u6ce1\u6392\u5e8f \u9898\u76ee \u6709\u4e00\u4e2a\u5df2\u7ecf\u6392\u597d\u5e8f\u7684\u6570\u7ec4 a[11] {1,5,6,7,13,22,27,37,38,45}&#xff08;\u539f\u670910\u4e2a\u5347\u5e8f\u5143\u7d20&#xff0c;\u9884\u75591\u4e2a\u4f4d\u7f6e&#xff09;\u3002 \u8f93\u5165\u4e00\u4e2a\u6570&#xff0c;\u5c06\u6570\u5b57\u653e\u5230\u6570\u7ec4\u672b\u5c3e&#xff0c;\u518d\u4f7f\u7528\u5192\u6ce1\u6392\u5e8f&#xff0c;\u5b9e\u73b0\u6574\u4f53\u5347\u5e8f&#xff0c;\u6700\u540e\u8f93\u51fa\u6570\u7ec4\u3002\u8bf4\u660e&#xff1a;\u9898\u76ee\u672c\u610f\u662f\u201c\u627e\u5230\u4f4d\u7f6e\u63d2\u5165\u201d&#xff1b;\u5982\u679c\u4f60\u8981\u6c42\u7528\u5192\u6ce1\u6392\u5e8f\u5b9e\u73b0&#xff0c;\u601d\u8def\u662f&amp;","og_url":"https:\/\/www.wsisp.com\/helps\/123113.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-06T04:48:56+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/123113.html","url":"https:\/\/www.wsisp.com\/helps\/123113.html","name":"C\u8bed\u8a00\u7a0b\u5e8f\u8bbe\u8ba1\u9898\uff5c\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u6570\u5b57\u5192\u6ce1\u6392\u5e8f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-06T04:48:56+00:00","dateModified":"2026-11-06T04:48:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/123113.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/123113.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/123113.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"C\u8bed\u8a00\u7a0b\u5e8f\u8bbe\u8ba1\u9898\uff5c\u6709\u5e8f\u6570\u7ec4\u63d2\u5165\u6570\u5b57\u5192\u6ce1\u6392\u5e8f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/123113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=123113"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/123113\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=123113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=123113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=123113"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=123113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}