{"id":162,"date":"2024-02-12T23:35:54","date_gmt":"2024-02-12T15:35:54","guid":{"rendered":"https:\/\/www.nenuacm.top\/?p=162"},"modified":"2024-03-09T15:07:51","modified_gmt":"2024-03-09T07:07:51","slug":"nenuoj-%e4%b9%8b-%e7%ae%97%e6%b3%951%e7%ac%ac3%e7%ab%a0","status":"publish","type":"post","link":"https:\/\/www.nenuacm.top\/index.php\/2024\/02\/12\/nenuoj-%e4%b9%8b-%e7%ae%97%e6%b3%951%e7%ac%ac3%e7%ab%a0\/","title":{"rendered":"NENUOJ \u4e4b \u7b97\u6cd51\u7b2c3\u7ae0"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1085\">3001 \u6700\u5927\u516c\u7ea6\u6570<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u8f93\u5165\u4e24\u4e2a\u6574\u6570a\uff0cb (1 &lt;= a,b &lt;= 100000000)\uff0c\u8bf7\u7f16\u5199\u7a0b\u5e8f\u6c42\u51fa\u4ed6\u4eec\u7684\u6700\u5927\u516c\u7ea6\u6570\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u7b2c\u4e00\u4e2a\u6b63\u6574\u6570n\u8868\u793a\u6d4b\u8bd5\u6570\u636e\u7684\u4e2a\u6570\uff0c\u63a5\u4e0b\u6765\u7684n\u884c\u6bcf\u884c\u6709\u4e24\u4e2a\u6574\u6570a\u548cb\uff0c\u7a7a\u683c\u9694\u5f00\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u8f93\u51fan\u884c\uff0c\u6bcf\u884c\u8f93\u51fa\u5bf9\u5e94a\uff0cb\u7684\u6700\u5927\u516c\u7ea6\u6570\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>3<br>12 8<br>25 10<br>21 63<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>4<br>5<br>21<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u6700\u5927\u516c\u7ea6\u6570\u7528\u8f97\u8f6c\u76f8\u9664\u6cd5\u5199\u5c31\u597d\uff0c\u8f97\u8f6c\u76f8\u9664\u6cd5\u7684\u5199\u6cd5\u81ea\u884c\u67e5\u8be2~<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint gcd(int x,int y){\n\treturn x % y ? gcd(y,x % y) : y;\n}\nint main(){\n\tint a,b;\n\tint n;\n\tscanf(\"%d\",&amp;n);\n\twhile(n--){\n\t\tscanf(\"%d %d\",&amp;a,&amp;b);\n\t\tprintf(\"%d\\n\",gcd(a,b));\n\t}\n\treturn 0;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1086\">3002 \u5047\u7968\u7edf\u8ba1<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u7531\u4e8e\u4f60\u4eec\u56e2\u961f\u5728\u56fd\u9645\u5927\u5b66\u751f\u8bd7\u6b4c\u5927\u8d5b\u4e0a\u53d6\u5f97\u7684\u5de8\u5927\u6210\u5c31\uff0c\u4f60\u4eec\u5b66\u6821\u51b3\u5b9a\u4e3a\u4f60\u4eec\u53ec\u5f00\u4e00\u6b21\u5e86\u529f\u9e21\u5c3e\u9152\u4f1a\uff0c\u5230\u6765\u7684\u4eba\u6570\u5927\u5927\u8d85\u51fa\u4e86\u9884\u671f\u3002 \u7136\u800c\u5e86\u529f\u4f1a\u7684\u4e3b\u7ba1\u5374\u62b1\u6028\u53d1\u73b0\u4e86\u6709\u4eba\u4f7f\u7528\u5047\u7968\uff0c\u5b9e\u9645\u7684\u95e8\u7968\u662f\u4ece1\u5230N (N &lt;= 10000)\uff0c\u4e3b\u7ba1\u6000\u7591\u6709\u4eba\u91c7\u7528\u590d\u5370\u3001\u6253\u5370\u7b49\u624b\u6bb5\u4f2a\u9020\u4e86\u95e8\u7968\u3002\u4ed6\u628a\u6240\u6709\u6536\u4e0a\u6765\u7684\u95e8\u7968\u62ff\u7ed9\u4f60\uff0c\u8981\u6c42\u4f60\u7f16\u5199\u7a0b\u5e8f\uff0c\u7edf\u8ba1\u6240\u6709\u95e8\u7968\u4e2d\u5b58\u5728\u5047\u7968\u7684\u95e8\u7968\u6570\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u6587\u4ef6\u4e2d\u5305\u542b\u591a\u7ec4\u6d4b\u8bd5\u6570\u636e\uff0c\u6bcf\u7ec4\u6d4b\u8bd5\u6570\u636e\u5360\u4e24\u884c\u3002\u7b2c1\u884c\u5305\u62ec\u4e24\u4e2a\u6574\u6570N\u548cM\uff0c\u5206\u522b\u8868\u793a\u95e8\u7968\u7684\u521d\u59cb\u603b\u5f20\u6570\u548c\u53c2\u52a0\u665a\u4f1a\u7684\u603b\u4eba\u6570 (1 &lt;= N &lt;= 10000,1 &lt;= M &lt;= 20000)\u3002\u7b2c2\u884c\u4e3aM\u4e2a\u6574\u6570Ti \uff0c\u8868\u793a\u6536\u5230\u7684M\u5f20\u95e8\u7968\u7684\u53f7\u7801(1 &lt;= Ti &lt;= N)\u3002\u8f93\u5165\u6587\u4ef6\u6700\u540e\u4e00\u884c\u4e3a0 0\uff0c\u8868\u793a\u8f93\u5165\u7ed3\u675f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u5bf9\u6bcf\u7ec4\u8f93\u5165\u6d4b\u8bd5\u6570\u636e\uff0c\u8f93\u51fa\u4e00\u4e2a\u6574\u6570\uff0c\u5360\u4e00\u884c\uff0c\u8868\u793a\u6536\u4e0a\u6765\u7684\u95e8\u7968\u4e2d\u5171\u6709\u591a\u5c11\u79cd\u7968\u88ab\u4f2a\u9020\u8fc7\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>5 5<br>3 3 1 2 4<br>6 10<br>6 1 3 6 6 4 2 3 1 2<br>0 0<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>1<br>4<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u6ce8\u610f\u8bfb\u9898\uff01\u8fd9\u9053\u9898\u8981\u6c42\u7684\u662f\u6709\u51e0<strong>\u79cd<\/strong>\u7968\u88ab\u4f2a\u9020\u8fc7\uff0c\u6211\u4eec\u53ef\u4ee5\u7528\u4e00\u4e2a\u6570\u7ec4\u8bb0\u5f55\u6bcf\u4e00\u79cd\u7968\u88ab\u6536\u4e0a\u4e86\u51e0\u5f20\uff0c\u5982\u679c\u4e00\u79cd\u7968\u88ab\u6536\u4e0a\u6765\u4e86\u597d\u591a\u5f20\uff0c\u8bf4\u660e\u8fd9\u4e00\u79cd\u7968\u88ab\u4f2a\u9020\u4e86\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f\uff0c\u6709<strong>\u591a\u7ec4\u6d4b\u8bd5\u6570\u636e<\/strong>\uff0c\u6240\u4ee5\u6bcf\u4e00\u7ec4\u6570\u636e\u7ed3\u675f\u4e4b\u540e\uff0c\u8981\u6ce8\u610f\u6e05\u7a7a\u6570\u7ec4\u548c\u53d8\u91cf\u3002\u8bb0\u5f97\u6362\u884c~<\/p>\n\n\n\n<p>\u5c40\u90e8\u53d8\u91cf\u7684\u6570\u7ec4\u4e0d\u80fd\u5f00\u592a\u5927\uff0c1e4\uff08\u537310000\u7684\u6570\u91cf\u7ea7\uff09\u7684\u6570\u636e\u91cf\u5c31\u5f88\u5927\u4e86\uff0c\u5982\u679c\u518d\u5927\uff0c\u5c31\u5e94\u5f53\u5f00\u5168\u5c40\u53d8\u91cf\u54e6\uff01<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint main(){\n&nbsp; &nbsp;int n,m;\n&nbsp; &nbsp;while(~scanf(\"%d %d\",&amp;n,&amp;m)){\n&nbsp; &nbsp; &nbsp; &nbsp;int vis&#91;20005] = {0};\n&nbsp; &nbsp; &nbsp; &nbsp;if(n == 0 &amp;&amp; m == 0) break;\n&nbsp; &nbsp; &nbsp; &nbsp;for(int i = 1;i &lt;= m;i++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int ticket;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;scanf(\"%d\",&amp;ticket);\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vis&#91;ticket]++;\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;int cnt = 0;\n&nbsp; &nbsp; &nbsp; &nbsp;for(int i = 0;i &lt; 20005;i++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(vis&#91;i] &gt; 1) cnt++;\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"%d\\n\",cnt);\n&nbsp; }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1087\">3003 \u6298\u534a\u5904\u7406<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u5bf9\u4e8e\u4e00\u4e2a\u6570n\uff0c\u5982\u679c\u662f\u5076\u6570\uff0c\u5c31\u628an\u780d\u6389\u4e00\u534a\uff1b\u5982\u679c\u662f\u5947\u6570\uff0c\u628an\u53d8\u6210 3 * n + 1\u540e\u780d\u6389\u4e00\u534a\uff0c\u76f4\u5230\u8be5\u6570\u53d8\u4e3a1\u4e3a\u6b62\u3002 \u8bf7\u8ba1\u7b97\u9700\u8981\u7ecf\u8fc7\u51e0\u6b65\u624d\u80fd\u5c06n\u53d8\u52301\uff0c\u5177\u4f53\u53ef\u89c1\u6837\u4f8b\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u5305\u542b\u591a\u4e2a\u6d4b\u8bd5\u6570\u636e\uff0c\u6bcf\u4e2a\u6d4b\u8bd5\u6570\u636e\u5305\u542b\u4e00\u4e2a\u6574\u6570n,\u5f53n\u4e3a0 \u65f6\u8868\u793a\u8f93\u5165\u7ed3\u675f\u3002\uff081 &lt;= n &lt;= 10000\uff09\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u5bf9\u4e8e\u6bcf\u7ec4\u6d4b\u8bd5\u6570\u636e\u8bf7\u8f93\u51fa\u4e00\u4e2a\u6570\uff0c\u8868\u793a\u9700\u8981\u7ecf\u8fc7\u7684\u6b65\u6570,\u6bcf\u7ec4\u8f93\u51fa\u5360\u4e00\u884c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>3<br>1<br>0<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>5<br>0<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u9053\u9898\u5c31\u662f\u7b80\u5355\u7684\u6a21\u62df\uff0c\u4f46\u662f\u53ef\u4ee5\u5b66\u4e60\u4e00\u4e0b\u7b14\u8005\u7684\u4ee3\u7801\u4e8c\u7684\u4ee3\u7801\u5199\u6cd5\uff0c\u6709\u4e9b\u5199\u6cd5\u8fd8\u662f\u5f88\u503c\u5f97\u5b66\u4e60\u7684\u3002<\/p>\n\n\n\n<p>\u7528 if(!n) \u4ee3\u66ff if(n == 0) \uff0c\u7528 if(n &amp; 1) \u4ee3\u66ff if(n % 2 == 1) \u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00 \u5199\u6cd5\u4e00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint main(){\n&nbsp; &nbsp;int n;\n&nbsp; &nbsp;while(~scanf(\"%d\",&amp;n)){\n&nbsp; &nbsp; &nbsp; &nbsp;if(n == 0) break;\/\/\u4e5f\u53ef\u4ee5\u5199\u6210 if(!n) break; \u8fd9\u662f\u540c\u4e00\u4e2a\u542b\u4e49\u54e6!\n&nbsp; &nbsp; &nbsp; &nbsp;int cnt = 0;\n&nbsp; &nbsp; &nbsp; &nbsp;while(n != 1){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(n % 2 == 0){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n \/= 2;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n = n*3 + 1;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n \/= 2;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cnt++;\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"%d\\n\",cnt);\n&nbsp; }\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00 \u5199\u6cd5\u4e8c\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint main(){\n&nbsp; &nbsp;int n;\n&nbsp; &nbsp;while(~scanf(\"%d\",&amp;n)){\n&nbsp; &nbsp; &nbsp; &nbsp;if(!n) break;\n&nbsp; &nbsp; &nbsp; &nbsp;int cnt = 0;\n&nbsp; &nbsp; &nbsp; &nbsp;while(n != 1){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(n &amp; 1){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n = n*3 + 1;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n \/= 2;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n \/= 2;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cnt++;\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"%d\\n\",cnt);\n&nbsp; }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1088\">3004 \u68cb\u76d8\u4e0a\u7684\u8ddd\u79bb<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u56fd\u9645\u8c61\u68cb\u7684\u68cb\u76d8\u662f\u9ed1\u767d\u76f8\u95f4\u76848 * 8\u7684\u65b9\u683c\uff0c\u68cb\u5b50\u653e\u5728\u683c\u5b50\u4e2d\u95f4\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.nenuacm.top\/wp-content\/uploads\/2024\/02\/image-1.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"438\" height=\"438\" data-original=\"https:\/\/www.nenuacm.top\/wp-content\/uploads\/2024\/02\/image-1.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"img\" class=\"wp-image-164\"  sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><\/div><\/figure>\n\n\n\n<p>\u56fd\u9645\u8c61\u68cb\u68cb\u76d8\u793a\u610f\u56fe<\/p>\n\n\n\n<p>\u738b\u3001\u540e\u3001\u8f66\u3001\u8c61\u7684\u8d70\u5b50\u89c4\u5219\u5982\u4e0b\uff1a \uff081\uff09\u738b\uff1a\u6a2a\u3001\u76f4\u3001\u659c\u90fd\u53ef\u4ee5\u8d70\uff0c\u4f46\u6bcf\u6b65\u9650\u8d70\u4e00\u683c\u3002 \uff082\uff09\u540e\uff1a\u6a2a\u3001\u76f4\u3001\u659c\u90fd\u53ef\u4ee5\u8d70\uff0c\u6bcf\u6b65\u683c\u6570\u4e0d\u53d7\u9650\u5236\u3002 \uff083\uff09\u8f66\uff1a\u6a2a\u3001\u7ad6\u5747\u53ef\u4ee5\u8d70\uff0c\u4e0d\u80fd\u659c\u8d70\uff0c\u683c\u6570\u4e0d\u9650\u3002 \uff084\uff09\u8c61\uff1a\u53ea\u80fd\u659c\u8d70\uff0c\u683c\u6570\u4e0d\u9650\u3002 \u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u7ed9\u5b9a\u8d77\u59cb\u4f4d\u7f6e\u548c\u76ee\u6807\u4f4d\u7f6e\uff0c\u8ba1\u7b97\u738b\u3001\u540e\u3001\u8f66\u3001\u8c61\u4ece\u8d77\u59cb\u4f4d\u7f6e\u8d70\u5230\u76ee\u6807\u4f4d\u7f6e\u6240\u9700\u7684\u6700\u5c11\u6b65\u6570\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u7b2c\u4e00\u884c\u662f\u6d4b\u8bd5\u6570\u636e\u7684\u7ec4\u6570t\uff080 &lt;= t &lt;= 20\uff09\u3002\u4ee5\u4e0b\u6bcf\u884c\u662f\u4e00\u7ec4\u6d4b\u8bd5\u6570\u636e\uff0c\u6bcf\u7ec4\u5305\u62ec\u68cb\u76d8\u4e0a\u7684\u4e24\u4e2a\u4f4d\u7f6e\uff0c\u7b2c\u4e00\u4e2a\u662f\u8d77\u59cb\u4f4d\u7f6e\uff0c\u7b2c\u4e8c\u4e2a\u662f\u76ee\u6807\u4f4d\u7f6e\u3002\u4f4d\u7f6e\u7528\u5b57\u6bcd-\u6570\u5b57\u7684\u5f62\u5f0f\u8868\u793a\uff0c\u5b57\u6bcd\u4ece\u201ca\u201d\u5230\u201ch\u201d\uff0c\u6570\u5b57\u4ece\u201c1\u201d\u5230\u201c8\u201d\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u5bf9\u8f93\u5165\u7684\u6bcf\u7ec4\u6d4b\u8bd5\u6570\u636e\uff0c\u8f93\u51fa\u738b\u3001\u540e\u3001\u8f66\u3001\u8c61\u6240\u9700\u7684\u6700\u5c11\u6b65\u6570\u3002\u5982\u679c\u65e0\u6cd5\u5230\u8fbe\uff0c\u5c31\u8f93\u51fa\u201cInf\u201d\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>2<br>a1 c3<br>f5 f8<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>2 1 2 1<br>3 1 1 Inf<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u9053\u9898\u5728\u5927\u4e00\u4e0b\u7684\u65f6\u5019\uff0c\u56f0\u4f4f\u7b14\u8005\u597d\u957f\u4e00\u6bb5\u65f6\u95f4\uff0c\u662f\u4e2a\u6bd4\u8f83\u590d\u6742\u7684\u6a21\u62df\uff0c\u4e0b\u65b9\u7684\u5199\u6cd5\u4e00\u5c31\u662f\u7b14\u8005\u5f53\u65f6\u7684\u4ee3\u7801\uff0c\u5199\u6cd5\u4e8c\u4e3a\u7b14\u8005\u5199\u9898\u89e3\u65f6\u91cd\u5199\u7684\u4ee3\u7801\u3002\u601d\u8def\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u53bb\u60f3\u8c61\uff08\u4e0d\u5355\u7eaf\u662f\u6a21\u62df\uff09\uff0c\u6bd4\u5982\u50cf\u738b\uff0c\u659c\u7740\u8d70\u6216\u8005\u76f4\u7740\u8d70\uff0c\u80af\u5b9a\u80fd\u8d70\u5230\uff0c\u5e76\u4e14\u6b65\u6570\u5c31\u662f\u8ddd\u79bb\u4e4b\u5dee\u7684\u6700\u5927\u503c\u3002\u50cf\u540e\uff0c\u4e00\u5b9a\u80fd\u8d70\u5230\uff0c\u5c31\u4e09\u79cd\u60c5\u51b5\uff0c0\u30011\u30012\uff0c0\u5c31\u662f\u5728\u539f\u5730\uff0c1\u5c31\u662f\u5728\u540c\u4e2a\u6a2a\u8f74\u6216\u8005\u7ad6\u8f74\u6216\u8005\u659c\u8f74\u4e0a\uff0c2\u5c31\u662f\u524d\u4e24\u79cd\u60c5\u51b5\u4e4b\u5916\u3002\u8f66\u4e5f\u4e00\u5b9a\uff0c0\u5c31\u662f\u5728\u539f\u5730\uff0c1\u5c31\u662f\u5728\u540c\u4e2a\u6a2a\u8f74\u6216\u8005\u7ad6\u8f74\u4e0a\uff0c2\u5c31\u662f\u524d\u4e24\u79cd\u60c5\u51b5\u4e4b\u5916\u3002<\/p>\n\n\n\n<p>\u6700\u590d\u6742\u7684\u5c31\u662f\u8c61\u7684\u60c5\u51b5\uff0c\u767d\u8c61\u4e0d\u8d70\u9ed1\u683c\uff0c\u9ed1\u8c61\u4e0d\u8d70\u767d\u683c\uff0c\u9996\u5148\uff0c\u5982\u679c\u8d77\u70b9\u548c\u7ec8\u70b9\u4e00\u6837\uff0c\u5c31\u662f0\uff08\u5373\u5728\u539f\u5730\uff09\uff0c\u5982\u679c\u8d77\u70b9\u548c\u7ec8\u70b9\u662f\u659c\u8f74\u7684\u5173\u7cfb\uff0c\u90a3\u6b65\u6570\u5c31\u662f1\uff0c\u5982\u679c\u6a2a\u8f74\uff0b\u7ad6\u8f74\u7684\u8ddd\u79bb\u4e4b\u548c\u4e3a\u5947\u6570\uff0c\u8bf4\u660e\u4e00\u5b9a\u4e00\u4e2a\u5728\u767d\u683c\uff0c\u4e00\u4e2a\u5728\u9ed1\u683c\uff0c\u5c31\u662fInf\uff0c\u5426\u5219\u90fd\u662f\u6b65\u6570\u4e3a2\u7684\u60c5\u51b5\uff0c\u7136\u540e\u6309\u8fd9\u4e2a\u601d\u8def\u5199\u4ee3\u7801\u5c31\u597d~\u8bfb\u5165\u7684\u65b9\u5f0f\u770b\u81ea\u5df1\u559c\u597d\uff0c\u53ef\u4ee5\u53c2\u8003\u7b14\u8005\u7684\u5199\u6cd5\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00 \u5199\u6cd5\u4e00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint main(){\n\t\n\tint t;\n\tchar str1&#91;1000],str2&#91;1000];\n\tint a1,a2;\n\tscanf(\"%d\",&amp;t);\n\twhile(t--){\n\t\t\n\t\tscanf(\"%s %s\",str1,str2);\n\t\tint w = str1&#91;1]-str2&#91;1];\n\t\tint h = str1&#91;0]-str2&#91;0];\n\t\tif(w&lt;0) w=-w;\n\t\tif(h&lt;0) h=-h;\n\t\tif(w==0&amp;&amp;h==0){\n\t\t\tprintf(\"0 0 0 0\\n\");\n\t\t\tcontinue;\n\t\t}\n\t\telse{\n\n\t\t\t\/\/king\n\t\t\tprintf(\"%d \",w&gt;h?w:h);\n\n\t\t\t\/\/queen\n\t\t\tif(w==h||w==0||h==0){\n\t\t\t\tprintf(\"1 \");\n\t\t\t}else{\n\t\t\t\tprintf(\"2 \");\n\t\t\t}\n\n\t\t\t\/\/car\n\t\t\tif(w==0||h==0){\n\t\t\t\tprintf(\"1 \");\n\t\t\t}else{\n\t\t\t\tprintf(\"2 \");\n\t\t\t}\n\n\t\t\tint temp = w&gt;h?w-h:h-w;\n\t\t\t\/\/xiang\n\t\t\tif(temp%2!=0){\n\t\t\t\tprintf(\"Inf\\n\");\n\t\t\t}\n\t\t\telse if(w==h){\n\t\t\t\tprintf(\"1\\n\");\n\t\t\t}else{\n\t\t\t\tprintf(\"2\\n\");\n\t\t\t}\n\n\n\t\t}\n\t\t\n\t}\n\n\treturn 0;\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00 \u5199\u6cd5\u4e8c\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint max(int a,int b){\n    return a &gt; b ? a : b;\n}\nint main(){\n\t\n\tint t;\n\tscanf(\"%d\",&amp;t);\n\twhile(t--){\n\t    int cnt1 = 0;\n\t    int cnt2 = 0;\n\t    int cnt3 = 0;\n\t    int cnt4 = 0;\n\t    char begin&#91;2];\n\t    char end&#91;2];\n\t    scanf(\"%s %s\",begin,end);\n\t    \/\/\u738b\n\t    cnt1 = max(abs(end&#91;0] - begin&#91;0]),abs(end&#91;1] - begin&#91;1]));\n\t    \/\/\u540e\n\t    if(end&#91;0] == begin&#91;0] &amp;&amp; end&#91;1] == begin&#91;1]){\n\t        cnt2 = 0;\n\t    }\n\t    else if(end&#91;0] == begin&#91;0] || end&#91;1] == begin&#91;1] || abs(end&#91;0] - begin&#91;0]) == abs(end&#91;1] - begin&#91;1])){\n\t        cnt2 = 1;\n\t    }else cnt2 = 2;\n\t    \/\/\u8f66\n\t    if(end&#91;0] == begin&#91;0] &amp;&amp; end&#91;1] == begin&#91;1]){\n\t        cnt3 = 0;\n\t    }else if(end&#91;0] == begin&#91;0] || end&#91;1] == begin&#91;1]){\n\t        cnt3 = 1;\n\t    }else{\n\t        cnt3 = 2;\n\t    }\n\t    \/\/\u8c61\n\t    if(end&#91;0] == begin&#91;0] &amp;&amp; end&#91;1] == begin&#91;1]){\n\t        cnt4 = 0;\n\t    }else if(abs(end&#91;0] - begin&#91;0]) == abs(end&#91;1] - begin&#91;1])){\n\t        cnt4 = 1;\n\t    }else if((abs(end&#91;0] - begin&#91;0]) + abs(end&#91;1] - begin&#91;1])) % 2 == 1){\n\t        cnt4 = -1;\n\t    }else{\n\t        cnt4 = 2;\n\t    }\n\t    if(~cnt4)\/\/\u7b49\u4ef7\u4e8e if(cnt4 != -1) \u7684\u5199\u6cd5\n\t        printf(\"%d %d %d %d\\n\",cnt1,cnt2,cnt3,cnt4);\n\t    else printf(\"%d %d %d Inf\\n\",cnt1,cnt2,cnt3);\n\t}\n\treturn 0;\n}\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1089\">3005 \u5c0f\u660e\u7684A+B<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u5c0f\u660e\u4eca\u5e743\u5c81\u4e86\uff0c\u73b0\u5728\u4ed6\u5df2\u7ecf\u80fd\u591f\u8ba4\u8bc6100\u4ee5\u5185\u7684\u975e\u8d1f\u6574\u6570\uff0c\u5e76\u4e14\u80fd\u591f\u8fdb\u884c100\u4ee5\u5185\u7684\u975e\u8d1f\u6574\u6570\u7684\u52a0\u6cd5\u8ba1\u7b97\uff1b \u5bf9\u4e8e\u5927\u4e8e\u7b49\u4e8e100\u7684\u6574\u6570\uff0c\u5c0f\u660e\u4ec5\u4fdd\u7559\u8be5\u6570\u7684\u6700\u540e\u4e24\u4f4d\u8fdb\u884c\u8ba1\u7b97\uff0c\u5982\u679c\u8ba1\u7b97\u7ed3\u679c\u5927\u4e8e\u7b49\u4e8e100\uff0c\u90a3\u4e48\u5c0f\u660e\u4e5f\u4ec5\u4fdd\u7559\u8ba1\u7b97\u7ed3\u679c\u7684\u6700\u540e\u4e24\u4f4d\u3002 \u4f8b\u5982, \u5bf9\u4e8e\u5c0f\u660e\u6765\u8bf4\uff1a \uff081\uff091234\u548c34\u662f\u76f8\u7b49\u7684 \uff082\uff0935+80=15 \u7ed9\u5b9a\u975e\u8d1f\u6574\u6570A\u548cB\uff0c\u4f60\u7684\u4efb\u52a1\u662f\u4ee3\u8868\u5c0f\u660e\u8ba1\u7b97\u51faA+B\u7684\u503c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u6570\u636e\u7684\u7b2c\u4e00\u884c\u4e3a\u4e00\u4e2a\u6b63\u6574\u6570T\uff0c\u8868\u793a\u6d4b\u8bd5\u6570\u636e\u7684\u7ec4\u6570\u3002\u7136\u540e\u662fT\u7ec4\u6d4b\u8bd5\u6570\u636e\uff0c\u6bcf\u7ec4\u6d4b\u8bd5\u6570\u636e\u5305\u542b\u4e24\u4e2a\u975e\u8d1f\u6574\u6570A\u548cB(A\u548cB\u5747\u5728int\u578b\u53ef\u8868\u793a\u7684\u8303\u56f4\u5185)\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u5bf9\u4e8e\u6bcf\u7ec4\u6d4b\u8bd5\u6570\u636e\uff0c\u8f93\u51fa\u5c0f\u660eA+B\u7684\u7ed3\u679c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>2<br>35 80<br>15 1152<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>15<br>67<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u601d\u8def\u5f88\u5bb9\u6613\uff0c\u5c31\u662f\u4e2a\u5f88\u7b80\u5355\u7684\u6a21\u62df\uff0c\u524d\u9762\u53d6\u4f59\uff0c\u8f93\u51fa\u4e5f\u53d6\u4f59\u5c31\u597d\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint main(){\n&nbsp; &nbsp;int t;\n&nbsp; &nbsp;scanf(\"%d\",&amp;t);\n&nbsp; &nbsp;while(t--){\n&nbsp; &nbsp; &nbsp; &nbsp;int a,b;\n&nbsp; &nbsp; &nbsp; &nbsp;scanf(\"%d %d\",&amp;a,&amp;b);\n&nbsp; &nbsp; &nbsp; &nbsp;if(a &gt; 100) a %= 100;\n&nbsp; &nbsp; &nbsp; &nbsp;if(b &gt; 100) b %= 100;\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"%d\\n\",(a + b) % 100);\n&nbsp; }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1090\">3006 \u5956\u5b66\u91d1\u8ba1\u7b97<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u67d0\u6821\u7684\u60ef\u4f8b\u662f\u5728\u6bcf\u5b66\u671f\u7684\u671f\u672b\u8003\u8bd5\u4e4b\u540e\u53d1\u653e\u5956\u5b66\u91d1\u3002\u53d1\u653e\u7684\u5956\u5b66\u91d1\u5171\u6709\u4e94\u79cd\uff0c\u83b7\u53d6\u7684\u6761\u4ef6\u5404\u81ea\u4e0d\u540c\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u9662\u58eb\u5956\u5b66\u91d1\uff0c\u6bcf\u4eba8000\u5143\uff0c\u671f\u672b\u5e73\u5747\u6210\u7ee9\u9ad8\u4e8e80\u5206\uff08&gt;80\uff09\uff0c\u5e76\u4e14\u5728\u672c\u5b66\u671f\u5185\u53d1\u88681\u7bc7\u62161\u7bc7\u4ee5\u4e0a\u8bba\u6587\u7684\u5b66\u751f\u5747\u53ef\u83b7\u5f97\uff1b<\/li>\n\n\n\n<li>\u4e94\u56db\u5956\u5b66\u91d1\uff0c\u6bcf\u4eba4000\u5143\uff0c\u671f\u672b\u5e73\u5747\u6210\u7ee9\u9ad8\u4e8e85\u5206\uff08&gt;85\uff09\uff0c\u5e76\u4e14\u73ed\u7ea7\u8bc4\u8bae\u6210\u7ee9\u9ad8\u4e8e80\u5206\uff08&gt;80\uff09\u7684\u5b66\u751f\u5747\u53ef\u83b7\u5f97\uff1b<\/li>\n\n\n\n<li>\u6210\u7ee9\u4f18\u79c0\u5956\uff0c\u6bcf\u4eba2000\u5143\uff0c\u671f\u672b\u5e73\u5747\u6210\u7ee9\u9ad8\u4e8e90\u5206\uff08&gt;90\uff09\u7684\u5b66\u751f\u5747\u53ef\u83b7\u5f97\uff1b<\/li>\n\n\n\n<li>\u897f\u90e8\u5956\u5b66\u91d1\uff0c\u6bcf\u4eba1000\u5143\uff0c\u671f\u672b\u5e73\u5747\u6210\u7ee9\u9ad8\u4e8e85\u5206\uff08&gt;85\uff09\u7684\u897f\u90e8\u7701\u4efd\u5b66\u751f\u5747\u53ef\u83b7\u5f97\uff1b<\/li>\n\n\n\n<li>\u73ed\u7ea7\u8d21\u732e\u5956\uff0c\u6bcf\u4eba850\u5143\uff0c\u73ed\u7ea7\u8bc4\u8bae\u6210\u7ee9\u9ad8\u4e8e80\u5206\uff08&gt;80\uff09\u7684\u5b66\u751f\u5e72\u90e8\u5747\u53ef\u83b7\u5f97\uff1b \u53ea\u8981\u7b26\u5408\u6761\u4ef6\u5c31\u53ef\u4ee5\u5f97\u5956\uff0c\u6bcf\u9879\u5956\u5b66\u91d1\u7684\u83b7\u5956\u4eba\u6570\u6ca1\u6709\u9650\u5236\uff0c\u6bcf\u540d\u5b66\u751f\u4e5f\u53ef\u4ee5\u540c\u65f6\u83b7\u5f97\u591a\u9879\u5956\u5b66\u91d1\u3002\u4f8b\u5982\u59da\u6797\u7684\u671f\u672b\u5e73\u5747\u6210\u7ee9\u662f87\u5206\uff0c\u73ed\u7ea7\u8bc4\u8bae\u6210\u7ee982\u5206\uff0c\u540c\u65f6\u4ed6\u8fd8\u662f\u4e00\u4f4d\u5b66\u751f\u5e72\u90e8\uff0c\u90a3\u4e48\u4ed6\u53ef\u4ee5\u540c\u65f6\u83b7\u5f97\u4e94\u56db\u5956\u5b66\u91d1\u548c\u73ed\u7ea7\u8d21\u732e\u5956\uff0c\u5956\u91d1\u603b\u6570\u662f4850\u5143\u3002 \u73b0\u5728\u7ed9\u51fa\u82e5\u5e72\u5b66\u751f\u7684\u76f8\u5173\u6570\u636e\uff0c\u8bf7\u8ba1\u7b97\u54ea\u4e9b\u540c\u5b66\u83b7\u5f97\u7684\u5956\u91d1\u603b\u6570\u6700\u9ad8\uff08\u5047\u8bbe\u603b\u6709\u540c\u5b66\u80fd\u6ee1\u8db3\u83b7\u5f97\u5956\u5b66\u91d1\u7684\u6761\u4ef6\uff09\u3002<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u7684\u7b2c\u4e00\u884c\u662f\u4e00\u4e2a\u6574\u6570N\uff081 &lt;= N &lt;= 100\uff09\uff0c\u8868\u793a\u5b66\u751f\u7684\u603b\u6570\u3002\u63a5\u4e0b\u6765\u7684N\u884c\u6bcf\u884c\u662f\u4e00\u4f4d\u5b66\u751f\u7684\u6570\u636e\uff0c\u4ece\u5de6\u5411\u53f3\u4f9d\u6b21\u662f\u59d3\u540d\uff0c\u671f\u672b\u5e73\u5747\u6210\u7ee9\uff0c\u73ed\u7ea7\u8bc4\u8bae\u6210\u7ee9\uff0c\u662f\u5426\u662f\u5b66\u751f\u5e72\u90e8\uff0c\u662f\u5426\u662f\u897f\u90e8\u7701\u4efd\u5b66\u751f\uff0c\u4ee5\u53ca\u53d1\u8868\u7684\u8bba\u6587\u6570\u3002\u59d3\u540d\u662f\u7531\u5927\u5c0f\u5199\u82f1\u6587\u5b57\u6bcd\u7ec4\u6210\u7684\u957f\u5ea6\u4e0d\u8d85\u8fc720\u7684\u5b57\u7b26\u4e32\uff08\u4e0d\u542b\u7a7a\u683c\uff09\uff1b\u671f\u672b\u5e73\u5747\u6210\u7ee9\u548c\u73ed\u7ea7\u8bc4\u8bae\u6210\u7ee9\u90fd\u662f0\u5230100\u4e4b\u95f4\u7684\u6574\u6570\uff08\u5305\u62ec0\u548c100\uff09\uff1b\u662f\u5426\u662f\u5b66\u751f\u5e72\u90e8\u548c\u662f\u5426\u662f\u897f\u90e8\u7701\u4efd\u5b66\u751f\u5206\u522b\u7528\u4e00\u4e2a\u5b57\u7b26\u8868\u793a\uff0cY\u8868\u793a\u662f\uff0cN\u8868\u793a\u4e0d\u662f\uff1b\u53d1\u8868\u7684\u8bba\u6587\u6570\u662f0\u523010\u7684\u6574\u6570\uff08\u5305\u62ec0\u548c10\uff09\u3002\u6bcf\u4e24\u4e2a\u76f8\u90bb\u6570\u636e\u9879\u4e4b\u95f4\u7528\u4e00\u4e2a\u7a7a\u683c\u5206\u9694\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u8f93\u51fa\u5305\u62ec\u4e09\u884c\uff0c\u7b2c\u4e00\u884c\u662f\u83b7\u5f97\u6700\u591a\u5956\u91d1\u7684\u5b66\u751f\u7684\u59d3\u540d\uff0c\u7b2c\u4e8c\u884c\u662f\u8fd9\u540d\u5b66\u751f\u83b7\u5f97\u7684\u5956\u91d1\u603b\u6570\u3002\u5982\u679c\u6709\u4e24\u4f4d\u6216\u4e24\u4f4d\u4ee5\u4e0a\u7684\u5b66\u751f\u83b7\u5f97\u7684\u5956\u91d1\u6700\u591a\uff0c\u8f93\u51fa\u4ed6\u4eec\u4e4b\u4e2d\u5728\u8f93\u5165\u6587\u4ef6\u4e2d\u51fa\u73b0\u6700\u65e9\u7684\u5b66\u751f\u7684\u59d3\u540d\u3002\u7b2c\u4e09\u884c\u662f\u8fd9N\u4e2a\u5b66\u751f\u83b7\u5f97\u7684\u5956\u5b66\u91d1\u7684\u603b\u6570\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>4<br>YaoLin 87 82 Y N 0<br>ChenRuiyi 88 78 N Y 1<br>LiXin 92 88 N N 0<br>ZhangQin 83 87 Y N 1<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>ChenRuiyi<br>9000<br>28700<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u9053\u9898\u5c31\u662f\u5f88\u7b80\u5355\u7684\u6a21\u62df\uff0c\u8ddf\u7740\u5199\u4e00\u904d\uff01<\/p>\n\n\n\n<p>\u7b14\u8005\u63e3\u6d4b\u5f88\u591a\u540c\u5b66\u7b2c\u4e00\u6b21\u5199\u8fd9\u9053\u9898\u76ee\u7684\u65f6\u5019\u53ef\u80fd\u4f1a\u5f00\u4e00\u4e2a\u7ed3\u6784\u4f53\u6570\u7ec4\u53bb\u5b58\u50a8\uff0c\u4f46\u662f\u6839\u672c\u4e0d\u9700\u8981\u5b58\u50a8\u6570\u636e\uff0c\u6211\u4eec\u53ea\u662f\u8981\u6700\u5927\u503c\u548c\u603b\u548c\u800c\u5df2\uff0c\u6240\u4ee5\u5e0c\u671b\u8bfb\u8005\u53ef\u4ee5\u53c2\u8003\u4e0b\u65b9\u7684\u4ee3\u7801\u5199\u4e00\u7248\u66f4\u597d\u7684\uff01<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\n#include&lt;string.h&gt;\nint max(int a,int b){\n&nbsp; &nbsp;return a &gt; b ? a : b;\n}\nint main(){\n&nbsp; &nbsp;int n;\n&nbsp; &nbsp;scanf(\"%d\",&amp;n);\n&nbsp; &nbsp;int ans = 0;\n&nbsp; &nbsp;char res&#91;25];\n&nbsp; &nbsp;int total = 0;\n&nbsp; &nbsp;for(int i = 1;i &lt;= n;i++){\n&nbsp; &nbsp; &nbsp; &nbsp;char name&#91;25];\n&nbsp; &nbsp; &nbsp; &nbsp;int aver;\n&nbsp; &nbsp; &nbsp; &nbsp;int score;\n&nbsp; &nbsp; &nbsp; &nbsp;char flag1;\n&nbsp; &nbsp; &nbsp; &nbsp;char flag2;\n&nbsp; &nbsp; &nbsp; &nbsp;int paper; &nbsp;\n&nbsp; &nbsp; &nbsp; &nbsp;scanf(\"%s %d %d %c %c %d\",name,&amp;aver,&amp;score,&amp;flag1,&amp;flag2,&amp;paper);\n&nbsp; &nbsp; &nbsp; &nbsp;int sum = 0;\n&nbsp; &nbsp; &nbsp; &nbsp;\/\/\u671f\u672b\u5e73\u5747\u6210\u7ee9\u9ad8\u4e8e80\u5206\uff08&gt;80\uff09\n&nbsp; &nbsp; &nbsp; &nbsp;\/\/\u5e76\u4e14\u5728\u672c\u5b66\u671f\u5185\u53d1\u88681\u7bc7\u62161\u7bc7\u4ee5\u4e0a\u8bba\u6587\u7684\u5b66\u751f\u5747\u53ef\u83b7\u5f97\n&nbsp; &nbsp; &nbsp; &nbsp;if(aver &gt; 80 &amp;&amp; paper &gt;= 1) sum += 8000;\n&nbsp; &nbsp; &nbsp; &nbsp;\/\/\u671f\u672b\u5e73\u5747\u6210\u7ee9\u9ad8\u4e8e85\u5206\uff08&gt;85\uff09\n&nbsp; &nbsp; &nbsp; &nbsp;\/\/\u5e76\u4e14\u73ed\u7ea7\u8bc4\u8bae\u6210\u7ee9\u9ad8\u4e8e80\u5206\uff08&gt;80\uff09\u7684\u5b66\u751f\u5747\u53ef\u83b7\u5f97\n&nbsp; &nbsp; &nbsp; &nbsp;if(aver &gt; 85 &amp;&amp; score &gt; 80) sum += 4000;\n&nbsp; &nbsp; &nbsp; &nbsp;\/\/\u671f\u672b\u5e73\u5747\u6210\u7ee9\u9ad8\u4e8e90\u5206\uff08&gt;90\uff09\u7684\u5b66\u751f\u5747\u53ef\u83b7\u5f97\n&nbsp; &nbsp; &nbsp; &nbsp;if(aver &gt; 90) sum += 2000;\n&nbsp; &nbsp; &nbsp; &nbsp;\/\/\u671f\u672b\u5e73\u5747\u6210\u7ee9\u9ad8\u4e8e85\u5206\uff08&gt;85\uff09\u7684\u897f\u90e8\u7701\u4efd\u5b66\u751f\u5747\u53ef\u83b7\u5f97\n&nbsp; &nbsp; &nbsp; &nbsp;if(aver &gt; 85 &amp;&amp; flag2 == 'Y') sum += 1000;\n&nbsp; &nbsp; &nbsp; &nbsp;\/\/\u73ed\u7ea7\u8bc4\u8bae\u6210\u7ee9\u9ad8\u4e8e80\u5206\uff08&gt;80\uff09\u7684\u5b66\u751f\u5e72\u90e8\u5747\u53ef\u83b7\u5f97\n&nbsp; &nbsp; &nbsp; &nbsp;if(score &gt; 80 &amp;&amp; flag1 == 'Y') sum += 850;\n&nbsp; &nbsp; &nbsp; &nbsp;if(sum &gt; ans){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;strcpy(res,name);\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;ans = max(ans,sum);\n&nbsp; &nbsp; &nbsp; &nbsp;total += sum;\n&nbsp; }\n&nbsp; &nbsp;printf(\"%s\\n%d\\n%d\",res,ans,total);\n\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1091\">3007 \u88c5\u7bb1\u95ee\u9898<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u4e00\u4e2a\u5de5\u5382\u751f\u4ea7\u7684\u4ea7\u54c1\u5f62\u72b6\u90fd\u662f\u957f\u65b9\u4f53\uff0c\u9ad8\u5ea6\u90fd\u662fh\uff0c\u4e3b\u8981\u67091 * 1\uff0c2 * 2\uff0c3 * 3\uff0c4 * 4\uff0c5 * 5\uff0c6 * 6\u7b496\u79cd\u3002\u8fd9\u4e9b\u4ea7\u54c1\u5728\u90ae\u5bc4\u65f6\u88ab\u5305\u88c5\u5728\u4e00\u4e2a6 * 6 * h\u7684\u957f\u65b9\u4f53\u5305\u88f9\u4e2d\u3002\u7531\u4e8e\u90ae\u8d39\u5f88\u8d35\uff0c\u5de5\u5382\u5e0c\u671b\u51cf\u5c0f\u6bcf\u4e2a\u8ba2\u5355\u7684\u5305\u88f9\u6570\u91cf\u4ee5\u589e\u52a0\u4ed6\u4eec\u7684\u5229\u6da6\u3002\u56e0\u6b64\u4ed6\u4eec\u9700\u8981\u4e00\u4e2a\u597d\u7684\u7a0b\u5e8f\u5e2e\u4ed6\u4eec\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002\u4f60\u7684\u4efb\u52a1\u5c31\u662f\u8bbe\u8ba1\u8fd9\u4e2a\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u5305\u62ec\u591a\u7ec4\u6d4b\u8bd5\u6570\u636e\uff0c\u6bcf\u4e00\u884c\u4ee3\u8868\u4e00\u4e2a\u8ba2\u5355\u3002\u6bcf\u4e2a\u8ba2\u5355\u91cc\u7684\u4e00\u884c\u5305\u62ec\u516d\u4e2a\u6574\u6570\uff0c\u7528\u7a7a\u683c\u9694\u5f00\uff0c\u4ece\u5c0f\u5230\u5927\u5206\u522b\u4e3a\u8fd96\u79cd\u4ea7\u54c1\u7684\u6570\u91cf\u30026\u4e2a0\u8868\u793a\u6587\u4ef6\u7ed3\u675f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u9488\u5bf9\u6bcf\u4e2a\u8ba2\u5355\u8f93\u51fa\u4e00\u4e2a\u6574\u6570\uff0c\u5360\u4e00\u884c\uff0c\u4ee3\u8868\u5bf9\u5e94\u7684\u8ba2\u5355\u6240\u9700\u7684\u6700\u5c0f\u5305\u88f9\u6570\u3002\u6ca1\u6709\u591a\u4f59\u7684\u7a7a\u884c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>0 0 4 0 0 1<br>7 5 1 0 0 0<br>0 0 0 0 0 0<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>2<br>1<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u9053\u9898\u6bd4\u8f83\u590d\u6742\uff0c\u6211\u4eec\u5f97\u753b\u753b\u56fe\u6765\u60f3\u4e00\u4e0b\u3002<\/p>\n\n\n\n<p>\u8fd9\u91cc\u6709\u4e2a6 * 6\u7684\u8868\u683c\u3002<\/p>\n\n\n\n<p>\u5047\u8bbe\u6211\u4eec\u67095\u4e2a6 * 6\u7684\u4ea7\u54c1\uff0c\u5c31\u9700\u89815\u4e2a\u7bb1\u5b50\uff0c\u6240\u4ee5\u6211\u4eec\u5c31 cnt \u52a0\u4e0a6 * 6\u4ea7\u54c1\u7684\u6570\u91cf\u5c31\u597d\u3002\uff08 cnt \u8868\u793a\u6211\u4eec\u9700\u8981\u7684\u7bb1\u5b50\u6570\u91cf\uff09<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><\/th><th><\/th><th><\/th><th><\/th><th><\/th><th><\/th><\/tr><\/thead><tbody><tr><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u5047\u8bbe\u6211\u4eec\u67095 * 5\u7684\u4ea7\u54c1\uff0c\u5c31\u662f\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.nenuacm.top\/wp-content\/uploads\/2024\/02\/image-20240212183715216-1024x251.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"251\" data-original=\"https:\/\/www.nenuacm.top\/wp-content\/uploads\/2024\/02\/image-20240212183715216-1024x251.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-169\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n\n\n\n<p>\u4e00\u4e2a5 * 5\u4ea7\u54c1\u9700\u8981\u4e00\u4e2a\u7bb1\u5b50\uff0c\u5e76\u4e14\u8fd8\u53ef\u4ee5\u653e\u4e0b11\u4e2a1 * 1\u7684\u7bb1\u5b50\u3002<\/p>\n\n\n\n<p>\u5047\u8bbe\u6211\u4eec\u67094 * 4\u7684\u4ea7\u54c1\uff0c\u5c31\u662f\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.nenuacm.top\/wp-content\/uploads\/2024\/02\/image-20240212183846565-1024x252.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"252\" data-original=\"https:\/\/www.nenuacm.top\/wp-content\/uploads\/2024\/02\/image-20240212183846565-1024x252.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-170\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n\n\n\n<p>\u4e00\u4e2a4 * 4\u7684\u4ea7\u54c1\u4e5f\u9700\u8981\u4e00\u4e2a\u7bb1\u5b50\uff0c\u5e76\u4e14\u8fd8\u53ef\u4ee5\u653e\u4e0b5\u4e2a2 * 2\u7684\u7bb1\u5b50\u6216\u8005\u66f4\u591a\u76841 * 1\u7684\u7bb1\u5b50\u3002<\/p>\n\n\n\n<p>\u5047\u8bbe\u6211\u4eec\u67093 * 3\u7684\u4ea7\u54c1\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.nenuacm.top\/wp-content\/uploads\/2024\/02\/image-20240212184009406-1024x256.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"256\" data-original=\"https:\/\/www.nenuacm.top\/wp-content\/uploads\/2024\/02\/image-20240212184009406-1024x256.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-171\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n\n\n\n<p>\u53ef\u4ee5\u653e\u4e0b4\u4e2a3 * 3\u7684\u7bb1\u5b50\uff0c\u6216\u8005\u5176\u5b83\u7684\u7ec4\u5408<\/p>\n\n\n\n<p>\u4f9d\u6b21\u7c7b\u63a8\u2026\u2026<\/p>\n\n\n\n<p>\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u6309\u7167\u8fd9\u4e2a\u601d\u8def\u53bb\u6a21\u62df\uff0c\u6bcf\u6b21\u5148\u8003\u8651\u5927\u4ea7\u54c1\u518d\u8003\u8651\u653e\u5c0f\u4ea7\u54c1\u3002<\/p>\n\n\n\n<p>\u4f46\u662f\u8fd9\u9053\u9898\u771f\u7684\u5f88\u96be\u5b9e\u73b0\uff0c\u5982\u679c\u6709\u8010\u5fc3\u7684\u8bdd\u53ef\u4ee5\u6162\u6162\u6a21\u62df\u5b9e\u73b0\uff0c\u4f46\u662f\u771f\u7684\u771f\u7684\u5f88\u5bb9\u6613\u5199\u9519\uff0c<del>\u7b14\u8005\u4e00\u76f4\u5199\u9519<\/del>\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\u53ef\u4ee5\u53c2\u8003\u4e0b\u9762\u6bd4\u8f83\u62bd\u8c61\u7684\u4ee3\u7801\uff0c\u5927\u6982\u601d\u8def\u4e5f\u5dee\u4e0d\u591a\uff0c\u5148\u628a6 * 6\u30015 * 5\u30014 * 4\u9700\u8981\u7684\u7bb1\u5b50\u7b97\u4e0a\uff0c\u518d\u52a0\u4e0a3 * 3\u9700\u8981\u7684\u7bb1\u5b50\u6570\uff08c \/ 4\u5411\u4e0a\u53d6\u6574\uff09\u3002\u7136\u540e\u8003\u8651\u8fd9\u4e9b\u7bb1\u5b50\u4ea7\u751f\u7684\u7a7a\u4f4d\u662f\u5426\u8db3\u591f2 * 2\u7684\u4ea7\u54c1\u6240\u9700\uff0c\u5982\u679c\u4e0d\u591f\u5c31\u518d\u52a0\u3002\u7136\u540e\u6700\u540e\u518d\u540c\u6837\u8003\u8651\uff0c\u6240\u6709\u5269\u4e0b\u7684\u7a7a\u683c\u662f\u5426\u8db3\u591f1 * 1\u6240\u9700\uff0c\u5982\u679c\u4e0d\u591f\u5c31\u518d\u52a0\u3002<\/p>\n\n\n\n<p>\u4ee3\u7801\u5927\u6982\u5982\u4e0b\uff0c\u8c28\u614e\u53c2\u8003\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint k&#91;4]={0,5,3,1};\/\/\u8868\u793a\u5f53\u5269\u4f59\u76843x3\u4ea7\u54c1\u7684\u6570\u91cf\u4e3a0\u52303\u4e2a\u65f6\uff0c\u53ef\u4ee5\u989d\u5916\u653e\u51652x2\u4ea7\u54c1\u7684\u6570\u91cf\n\/\/\u5047\u8bbe\u591a\u51fa0\u4e2a3 * 3\uff0c\u5c31\u53ef\u4ee5\u653e\u51650\u4e2a2 * 2\uff1b\u5047\u8bbe\u591a\u51fa1\u4e2a3 * 3\uff0c\u53ef\u4ee5\u653e\u4e0b5\u4e2a2 * 2;\u5047\u8bbe\u591a\u51fa2\u4e2a3 * 3\uff0c\u5c31\u53ef\u4ee5\u653e\u4e0b2\u4e2a2 * 2\uff1b\u5047\u8bbe\u591a\u51fa3\u4e2a3 * 3\uff0c\u5c31\u53ef\u4ee5\u653e\u4e0b1\u4e2a2 * 2\nint main(){\n&nbsp; &nbsp;int a,b,c,d,e,f;\n&nbsp; &nbsp;while(~scanf(\"%d %d %d %d %d %d\",&amp;a,&amp;b,&amp;c,&amp;d,&amp;e,&amp;f)){\n&nbsp; &nbsp; &nbsp; &nbsp;if(!a &amp;&amp; !b &amp;&amp; !c &amp;&amp; !d &amp;&amp; !e &amp;&amp; !f) break;\n&nbsp; &nbsp; &nbsp; &nbsp;int ans = 0;\n&nbsp; &nbsp; &nbsp; &nbsp;ans += f + e + d + c\/4;\n&nbsp; &nbsp; &nbsp; &nbsp;if(c % 4 != 0) ans++;\n&nbsp; &nbsp; &nbsp; &nbsp;if(b &gt; 5 * d + k&#91;c % 4]){\/\/\u8003\u86514 * 4\u4e2d\u53ef\u4ee5\u591a\u653e\u5165\u76842 * 2\u8fd8\u67093 * 3\u4e2d\u8fd8\u53ef\u4ee5\u591a\u653e\u5165\u76842 * 2\n&nbsp; &nbsp; &nbsp; ans += (b - (5 * d + k&#91;c % 4]) + 8) \/ 9;\/\/\u8fd9\u91cc\uff0b8\u662f\u4e3a\u4e86\u5411\u4e0a\u53d6\u6574\uff0c\u6ca1\u6709\u522b\u7684\u542b\u4e49\uff0c\u4e3b\u8981\u5c31\u662f\u770b\u770b\u8fd8\u9700\u8981\u5355\u72ec\u4e3a2 * 2\u5f00\u591a\u5c11\u4e2a\u7bb1\u5b50\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;if(a &gt; ans * 36 - (f * 36 - e * 25 - d * 16 - c * 9 - b * 4)){\/\/\u5982\u679ca\u7684\u6570\u91cf\uff1e\u5269\u4f591 * 1\u7684\u4e2a\u6570\n&nbsp; &nbsp; &nbsp; ans += (a - (ans * 36 - (f * 36 - e * 25 - d * 16 - c * 9 - b * 4)) + 35) \/ 36;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\/\/\u8fd9\u91cc\uff0b35\u662f\u4e3a\u4e86\u5411\u4e0a\u53d6\u6574\uff0c\u6ca1\u6709\u522b\u7684\u542b\u4e49\uff0c\u4e3b\u8981\u5c31\u662f\u770b\u770b\u8fd8\u9700\u8981\u5355\u72ec\u4e3a1 * 1\u5f00\u591a\u5c11\u4e2a\u7bb1\u5b50\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"%d\\n\",ans);\n&nbsp; }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1092\">3008 \u524dm\u5927\u7684\u6570<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u5c0f\u5468\u60f3\u786e\u8ba4\u4e00\u4e0b\u5979\u7684\u7b54\u6848\u662f\u5426\u6b63\u786e\uff0c\u4f46\u662f\u6574\u4e2a\u7684\u7b54\u6848\u662f\u5f88\u5e9e\u5927\u7684\u8868\uff0c\u5c0f\u5468\u53ea\u60f3\u8ba9\u4f60\u628a\u7b54\u6848\u4e2d\u6700\u5927\u7684M\u4e2a\u6570\u544a\u8bc9\u5979\u5c31\u53ef\u4ee5\u4e86\u3002 \u7ed9\u5b9a\u4e00\u4e2a\u5305\u542bN(N &lt;= 3000)\u4e2a\u6b63\u6574\u6570\u7684\u5e8f\u5217\uff0c\u6bcf\u4e2a\u6570\u4e0d\u8d85\u8fc75000\uff0c\u5bf9\u5b83\u4eec\u4e24\u4e24\u76f8\u52a0\u5f97\u5230\u7684N*(N-1)\/2\u4e2a\u548c\uff0c\u6c42\u51fa\u5176\u4e2d\u524dM\u5927\u7684\u6570(M &lt;= 1000)\u5e76\u6309\u4ece\u5927\u5230\u5c0f\u7684\u987a\u5e8f\u6392\u5217\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u53ef\u80fd\u5305\u542b\u591a\u7ec4\u6570\u636e\uff0c\u5176\u4e2d\u6bcf\u7ec4\u6570\u636e\u5305\u62ec\u4e24\u884c\uff1a \u7b2c\u4e00\u884c\u4e24\u4e2a\u6570N\u548cM\uff0c \u7b2c\u4e8c\u884cN\u4e2a\u6570\uff0c\u8868\u793a\u8be5\u5e8f\u5217\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u5bf9\u4e8e\u8f93\u5165\u7684\u6bcf\u7ec4\u6570\u636e\uff0c\u8f93\u51faM\u4e2a\u6570\uff0c\u8868\u793a\u7ed3\u679c\u3002\u8f93\u51fa\u5e94\u5f53\u6309\u7167\u4ece\u5927\u5230\u5c0f\u7684\u987a\u5e8f\u6392\u5217\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>4 4<br>1 2 3 4<br>4 5<br>5 3 6 4<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>7 6 5 5<br>11 10 9 9 8<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u9053\u9898\u601d\u8def\u4e5f\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u628a\u6240\u6709\u60c5\u51b5\u679a\u4e3e\u4e00\u6b21\u5c31\u597d\u3002\u7b14\u8005\u4e00\u5f00\u59cb\u8fd8\u6392\u4e86\u4e2a\u5e8f\uff0c\u540e\u6765\u89c9\u5f97\u5b8c\u5168\u4e0d\u9700\u8981\uff0c\u76f4\u63a5\u66b4\u529b\u679a\u4e3e\u6240\u6709\u201c\u4e24\u6570\u4e4b\u548c\u201d\u7684\u60c5\u51b5\uff0c\u7136\u540e\u5b58\u50a8\u8d77\u6765\uff0c\u4e4b\u540e\u4ece\u5927\u5230\u5c0f\u8f93\u51fa\u5c31\u597d\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint a&#91;10000];\nint vis&#91;10000];\nint main(){\n&nbsp; &nbsp;int n,m;\n&nbsp; &nbsp;while(~scanf(\"%d %d\",&amp;n,&amp;m)){\n&nbsp; &nbsp; &nbsp; &nbsp;for(int i = 0;i &lt; 10000;i++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vis&#91;i] = 0;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;a&#91;i] = 0;\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;for(int i = 1;i &lt;= n;i++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;scanf(\"%d\",&amp;a&#91;i]);\n&nbsp; &nbsp; &nbsp; }\n\n&nbsp; &nbsp; &nbsp; &nbsp;for(int i = 1;i &lt;= n;i++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(int j = i + 1;j &lt;= n;j++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int temp = a&#91;i] + a&#91;j];\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vis&#91;temp]++;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;for(int i = 10000;i &gt;= 0 &amp;&amp; m;i--){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;while(vis&#91;i] &gt; 0) {\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;printf(\"%d \",i);\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vis&#91;i]--;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;m--;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"\\n\");\n&nbsp; }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1093\">3009 \u5782\u76f4\u76f4\u65b9\u56fe<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u8f93\u51654\u884c\u5168\u90e8\u7531\u5927\u5199\u5b57\u6bcd\u7ec4\u6210\u7684\u6587\u672c\uff0c\u8f93\u51fa\u4e00\u4e2a\u5782\u76f4\u76f4\u65b9\u56fe\uff0c\u7ed9\u51fa\u6bcf\u4e2a\u5b57\u7b26\u51fa\u73b0\u7684\u6b21\u6570\u3002\u6ce8\u610f\uff1a\u53ea\u7528\u8f93\u51fa\u5b57\u7b26\u7684\u51fa\u73b0\u6b21\u6570\uff0c\u4e0d\u7528\u8f93\u51fa\u7a7a\u767d\u5b57\u7b26\uff0c\u6570\u5b57\u6216\u8005\u6807\u70b9\u7b26\u53f7\u7684\u8f93\u51fa\u6b21\u6570\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u5305\u62ec4\u884c\u7531\u5927\u5199\u5b57\u6bcd\u7ec4\u6210\u7684\u6587\u672c\uff0c\u6bcf\u884c\u4e0a\u5b57\u7b26\u7684\u6570\u76ee\u4e0d\u8d85\u8fc780\u4e2a\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u8f93\u51fa\u5305\u62ec\u82e5\u5e72\u884c\u3002\u5176\u4e2d\u6700\u540e\u4e00\u884c\u7ed9\u51fa26\u4e2a\u5927\u5199\u82f1\u6587\u5b57\u6bcd\uff0c\u8fd9\u4e9b\u5b57\u6bcd\u4e4b\u95f4\u7528\u7a7a\u683c\u9694\u5f00\u3002\u524d\u9762\u7684\u51e0\u884c\u5305\u62ec\u7a7a\u683c\u548c\u661f\u53f7\uff0c\u6bcf\u4e2a\u5b57\u6bcd\u51fa\u73b0\u51e0\u6b21\uff0c\u5c31\u5728\u8fd9\u4e2a\u5b57\u6bcd\u7684\u4e0a\u65b9\u8f93\u51fa\u4e00\u4e2a\u661f\u53f7\u3002\u6ce8\u610f\uff1a\u8f93\u51fa\u7684\u7b2c\u4e00\u884c\u4e0d\u80fd\u662f\u7a7a\u884c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG.<br>THIS IS AN EXAMPLE TO TEST FOR YOUR<br>HISTOGRAM PROGRAM.<br>HELLO!<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *<br>&nbsp; &nbsp; &nbsp; * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *<br>&nbsp; &nbsp; &nbsp; * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * &nbsp; &nbsp; * &nbsp; *<br>&nbsp; &nbsp; &nbsp; * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * &nbsp; &nbsp; * &nbsp; *<br>* &nbsp; &nbsp; &nbsp; * &nbsp; &nbsp; * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * &nbsp; &nbsp; * &nbsp; *<br>* &nbsp; &nbsp; &nbsp; * &nbsp; &nbsp; * * &nbsp; &nbsp; * * &nbsp; * &nbsp; &nbsp; * * *<br>* &nbsp; &nbsp; &nbsp; * &nbsp; * * * &nbsp; &nbsp; * * &nbsp; * * &nbsp; * * * *<br>* &nbsp; &nbsp; * * * * * * &nbsp; &nbsp; * * * * * &nbsp; * * * * &nbsp; &nbsp; * *<br>* * * * * * * * * * * * * * * * * * * * * * * * * *<br>A B C D E F G H I J K L M N O P Q R S T U V W X Y Z<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u9053\u9898\u9898\u610f\u4e0d\u96be\u7406\u89e3\uff0c\u5c31\u662f\u8003\u8651\u600e\u4e48\u5b9e\u73b0\u3002\u5176\u5b9e\u548c\u4ee5\u524d\u7684\u90a3\u4e9b\u8f93\u51fa\u7a7a\u683c\u548c\u661f\u53f7\u7684\u9898\u76ee\u5dee\u4e0d\u591a\uff0c\u5c31\u662f\u5f97\u89c2\u5bdf\u4e00\u4e0b\u56fe\u50cf\u3002\u6211\u4eec\u7684\u601d\u8def\u5c31\u662f\u8981\u8ba1\u6570\uff0c\u770b\u770b\u6709\u591a\u5c11\u4e2aABCD\u2026\u2026\u4ec0\u4e48\u7684\uff0c\u7136\u540e\u7528*\u7684\u5f62\u5f0f\u8f93\u51fa\u51fa\u6765\u3002\u6211\u4eec\u4f1a\u53d1\u73b0\u6700\u9ad8\u7684\u90a3\u4e2a\u661f\u53f7\u5c31\u662f\u8fd9\u4e2a\u5b57\u6bcd\u51fa\u73b0\u7684\u6b21\u6570\uff0c\u6211\u4eec\u628a\u8fd9\u4e2a\u6700\u5927\u503c\u79f0\u4e3amaxx\uff0c\u7136\u540e\u53bb\u770b\u770b\u884c\u548c\u5217\u4e0e\u8fd9\u4e2amaxx\u4e4b\u95f4\u7684\u5173\u7cfb\uff0c\u770b\u770b\u4ec0\u4e48\u65f6\u5019\u8981\u8f93\u51fa\u661f\u53f7\uff0c\u800c\u4ec0\u4e48\u65f6\u5019\u8f93\u51fa\u7a7a\u683c\u3002\u6bd4\u5982\u6211\u4eec\u7528vis\u6570\u7ec4\u8bb0\u5f55\u6bcf\u4e2a\u5b57\u6bcd\u51fa\u73b0\u6b21\u6570\uff0c\u5047\u8bbeA\u51fa\u73b05\u6b21\u5427\uff08vis[ 0 ] = 5 \uff09\uff0c\u800cmaxx\u662f10\uff0c\u90a3\u5bf9A\u6765\u8bf4\u5c31\u662f\u5148\u8f93\u51fa\uff0810 &#8211; 5\uff09\u6b21\u7a7a\u683c\uff0c\u518d\u8f93\u51fa5\u6b21\u661f\u53f7\uff0c\u6240\u4ee5\u6211\u4eec\u5c31\u662f\u7528 maxx &#8211; vis[ j ] \u4e0e i \u4e4b\u95f4\u7684\u5173\u7cfb\uff0c\u6765\u8003\u8651\u6700\u540e\u4f1a\u600e\u4e48\u6837\u5730\u8f93\u51fa\u3002\u5177\u4f53\u8bf7\u770b\u4ee3\u7801~<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\n#include&lt;string.h&gt;\nint vis&#91;1000];\nint max(int a,int b){\n&nbsp; &nbsp;return a &gt; b ? a : b;\n}\nint main(){\n&nbsp; &nbsp;char line&#91;1000];\n&nbsp; &nbsp;for(int i = 1;i &lt;= 4;i++){\n&nbsp; &nbsp; &nbsp; &nbsp;fgets(line,sizeof(line),stdin);\n&nbsp; &nbsp; &nbsp; &nbsp;int len = strlen(line);\n&nbsp; &nbsp; &nbsp; &nbsp;for(int i = 0;i &lt; len;i++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vis&#91;line&#91;i] - 'A']++;\n&nbsp; &nbsp; &nbsp; }\n&nbsp; }\n&nbsp; &nbsp;int maxx = 0;\n&nbsp; &nbsp;for(int i = 0;i &lt; 26;i++){\n&nbsp; &nbsp; &nbsp; &nbsp;maxx = max(maxx,vis&#91;i]);\n&nbsp; }\n&nbsp; &nbsp;for(int i = 0;i &lt; maxx;i++){\n&nbsp; &nbsp; &nbsp; &nbsp;for(int j = 0;j &lt; 26;j++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(maxx - vis&#91;j] &gt; i) printf(\" \");\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else printf(\"* \");\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"\\n\");\n&nbsp; }\n&nbsp; &nbsp;for(int i = 0;i &lt; 26;i++){\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"%c \",'A' + i);\n&nbsp; }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1094\">3010 \u80bf\u7624\u68c0\u6d4b<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u4e00\u5f20CT\u626b\u63cf\u7684\u7070\u5ea6\u56fe\u50cf\u53ef\u4ee5\u7528\u4e00\u4e2aN * N\uff080 &lt; N &lt; 100\uff09\u7684\u77e9\u9635\u63cf\u8ff0\uff0c\u77e9\u9635\u4e0a\u7684\u6bcf\u4e2a\u70b9\u5bf9\u5e94\u4e00\u4e2a\u7070\u5ea6\u503c\uff08\u6574\u6570\uff09\uff0c\u5176\u53d6\u503c\u8303\u56f4\u662f0~255\u3002\u6211\u4eec\u5047\u8bbe\u7ed9\u5b9a\u7684\u56fe\u50cf\u4e2d\u6709\u4e14\u53ea\u6709\u4e00\u4e2a\u80bf\u7624\u3002\u5728\u56fe\u4e0a\u76d1\u6d4b\u80bf\u7624\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a\u5982\u679c\u67d0\u4e2a\u70b9\u5bf9\u5e94\u7684\u7070\u5ea6\u503c\u5c0f\u4e8e\u7b49\u4e8e50\uff0c\u5219\u8fd9\u4e2a\u70b9\u5728\u80bf\u7624\u4e0a\uff0c\u5426\u5219\u4e0d\u5728\u80bf\u7624\u4e0a\u3002\u6211\u4eec\u628a\u5728\u80bf\u7624\u4e0a\u7684\u70b9\u7684\u6570\u76ee\u52a0\u8d77\u6765\uff0c\u5c31\u5f97\u5230\u4e86\u80bf\u7624\u5728\u56fe\u4e0a\u7684\u9762\u79ef\u3002\u4efb\u4f55\u5728\u80bf\u7624\u4e0a\u7684\u70b9\uff0c\u5982\u679c\u5b83\u662f\u56fe\u50cf\u7684\u8fb9\u754c\u6216\u8005\u5b83\u7684\u4e0a\u4e0b\u5de6\u53f3\u56db\u4e2a\u76f8\u90bb\u70b9\u4e2d\u81f3\u5c11\u6709\u4e00\u4e2a\u662f\u975e\u80bf\u7624\u4e0a\u7684\u70b9\uff0c\u5219\u8be5\u70b9\u79f0\u4e3a\u80bf\u7624\u7684\u8fb9\u754c\u70b9\u3002\u80bf\u7624\u7684\u8fb9\u754c\u70b9\u7684\u4e2a\u6570\u79f0\u4e3a\u80bf\u7624\u7684\u5468\u957f\u3002\u73b0\u5728\u7ed9\u5b9a\u4e00\u4e2a\u56fe\u50cf\uff0c\u8981\u6c42\u8ba1\u7b97\u5176\u4e2d\u7684\u80bf\u7624\u7684\u9762\u79ef\u548c\u5468\u957f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u7b2c\u4e00\u884c\u5305\u542b\u4e00\u4e2a\u6b63\u6574\u6570N\uff080 &lt; N &lt; 100\uff09\uff0c\u8868\u793a\u56fe\u50cf\u7684\u5927\u5c0f\uff1b\u63a5\u4e0b\u6765N\u884c\uff0c\u6bcf\u884c\u5305\u542b\u56fe\u50cf\u7684\u4e00\u884c\u3002\u56fe\u50cf\u7684\u4e00\u884c\u7528N\u4e2a\u6574\u6570\u8868\u793a\uff08\u6240\u6709\u6574\u6570\u5927\u4e8e\u7b49\u4e8e0\uff0c\u5c0f\u4e8e\u7b49\u4e8e255\uff09\uff0c\u4e24\u4e2a\u6574\u6570\u4e4b\u95f4\u7528\u4e00\u4e2a\u7a7a\u683c\u9694\u5f00\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u8f93\u51fa\u53ea\u6709\u4e00\u884c\uff0c\u8be5\u884c\u5305\u542b\u4e24\u4e2a\u6b63\u6574\u6570\uff0c\u5206\u522b\u4e3a\u7ed9\u5b9a\u56fe\u50cf\u4e2d\u80bf\u7624\u7684\u9762\u79ef\u548c\u5468\u957f\uff0c\u7528\u4e00\u4e2a\u7a7a\u683c\u5206\u5f00\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>6<br>99 99 99 99 99 99<br>99 99 99 50 99 99<br>99 99 49 49 50 51<br>99 50 20 25 52 99<br>40 50 99 99 99 99<br>99 99 99 99 99 99<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>9 8<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u9762\u79ef\u7684\u8bdd\u5c31\u662f\u6570\u6709\u591a\u5c11\u4e2a\u5c0f\u4e8e\u7b49\u4e8e50\u7684\uff0c\u5468\u957f\u7684\u8bdd\u5c31\u662f\u4e2d\u95f4\u90a3\u4e2a\u5c0f\u4e8e\u7b49\u4e8e50\uff0c\u56db\u5468\u6709\u4e00\u4e2a\u5927\u4e8e50\u7684\u5c31\u7b97\u4e00\u4e2a\u3002\u7136\u540e\u4ece\u5934\u5230\u5c3e\u679a\u4e3e\u4e00\u904d\u8ba1\u6570\u5c31\u597d\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint mx&#91;300]&#91;300];\n\u200b\nint main() {\n&nbsp; &nbsp;int n;\n&nbsp; &nbsp;scanf(\"%d\",&amp;n);\n&nbsp; &nbsp;int ans = 0;\n&nbsp; &nbsp;int sum = 0;\n&nbsp; &nbsp;for(int i = 1;i &lt;= n;i++){\n&nbsp; &nbsp; &nbsp; &nbsp;for(int j = 1;j &lt;= n;j++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;scanf(\"%d\",&amp;mx&#91;i]&#91;j]);\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(mx&#91;i]&#91;j] &lt;= 50) ans++;\n&nbsp; &nbsp; &nbsp; }\n&nbsp; }\n&nbsp; &nbsp;for(int i = 1;i &lt;= n;i++){\n&nbsp; &nbsp; &nbsp; &nbsp;for(int j = 1;j &lt;= n;j++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(mx&#91;i]&#91;j] &lt;= 50 &amp;&amp; (mx&#91;i + 1]&#91;j] &gt; 50 || mx&#91;i - 1]&#91;j] &gt; 50 || mx&#91;i]&#91;j + 1] &gt; 50 || mx&#91;i]&#91;j - 1] &gt; 50)){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sum++;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; }\n&nbsp; }\n&nbsp; &nbsp;printf(\"%d %d\\n\",ans,sum);\n}\n\u200b<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1095\">3101 \u5e73\u5747\u5e74\u9f84<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u73ed\u4e0a\u6709\u5b66\u751f\u82e5\u5e72\u540d\uff0c\u7ed9\u51fa\u6bcf\u540d\u5b66\u751f\u7684\u5e74\u9f84\uff08\u6574\u6570\uff09\uff0c\u6c42\u73ed\u4e0a\u6240\u6709\u5b66\u751f\u7684\u5e73\u5747\u5e74\u9f84\uff0c\u6309\u8981\u6c42\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u7b2c\u4e00\u884c\u6709\u4e00\u4e2a\u6574\u6570n\uff081 &lt;= n &lt;= 100\uff09\uff0c\u8868\u793a\u5b66\u751f\u7684\u4eba\u6570\u3002\u5176\u540en\u884c\u6bcf\u884c\u67091\u4e2a\u6574\u6570\uff0c\u53d6\u503c\u4e3a15\u523025\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u8f93\u51fa\u4e00\u884c\uff0c\u4e3a\u8981\u6c42\u7684\u5e73\u5747\u5e74\u9f84\uff0c\u5982\u679c\u4e3a\u6574\u6570\uff0c\u5219\u76f4\u63a5\u8f93\u51fa\u8be5\u6574\u6570\uff0c\u5982\u679c\u4e3a\u5c0f\u6570\uff0c\u5219\u4fdd\u7559\u5230\u5c0f\u6570\u70b9\u540e1\u4f4d\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>2<br>18<br>17<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>17.5<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u6ca1\u6709\u96be\u70b9\uff0c\u5c31\u662f\u3010\u5982\u679c\u4e3a\u6574\u6570\uff0c\u5219\u76f4\u63a5\u8f93\u51fa\u8be5\u6574\u6570\uff0c\u5982\u679c\u4e3a\u5c0f\u6570\uff0c\u5219\u4fdd\u7559\u5230\u5c0f\u6570\u70b9\u540e1\u4f4d\u3011\u8fd9\u4ef6\u4e8b\u60c5\u9700\u8981\u5206\u7c7b\u4e00\u4e0b\u5c31\u597d\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint main(){\n&nbsp; &nbsp;int n;\n&nbsp; &nbsp;scanf(\"%d\",&amp;n);\n&nbsp; &nbsp;int sum = 0;\n&nbsp; &nbsp;double aver = 0;\n&nbsp; &nbsp;for(int i = 1;i &lt;= n;i++){\n&nbsp; &nbsp; &nbsp; &nbsp;int a;\n&nbsp; &nbsp; &nbsp; &nbsp;scanf(\"%d\",&amp;a);\n&nbsp; &nbsp; &nbsp; &nbsp;sum += a;\n&nbsp; }\n\n&nbsp; &nbsp;aver = 1.0 * sum \/ n;\n&nbsp; &nbsp;if(sum % n != 0)\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"%.1f\\n\",aver);\n&nbsp; &nbsp;else printf(\"%.0f\\n\",aver);\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1096\">3102 \u6c14\u7403\u6765\u5566<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u672c\u6b21\u5927\u8d5b\u6b63\u5f0f\u5f00\u59cb\u4e86\u3002\u770b\u7740\u5404\u8272\u5404\u6837\u7684\u6c14\u7403\u98d8\u626c\u5728\u8d5b\u573a\u4e0a\u662f\u591a\u4e48\u4ee4\u4eba\u5174\u594b\u3002\u4f5c\u4e3aHDU\u6700\u597d\u7684\u7a0b\u5e8f\u5458\u4e4b\u4e00\u7684\u4f60\uff0c\u53ea\u8981\u4f60\u80fd\u89e3\u51b3\u4e00\u4e2a\u975e\u5e38\u7b80\u5355\u7684\u7b80\u5355\u7684\u4e0d\u80fd\u518d\u7b80\u5355\u7684\u9898\u76ee\uff0c\u4f60\u5c31\u4f1a\u5f97\u5230\u4e00\u4e2a\u6f02\u4eae\u7684\u6c14\u7403\u3002\u7ed9\u4f60\u4e00\u4e2a\u8fd0\u7b97\u7b26\uff08+\u3001-\u3001* \u3001\/\uff0c\u8868\u793a\u52a0\u3001\u51cf\u3001\u4e58\u3001\u9664\uff09\u548c\u4e24\u4e2a\u6b63\u6574\u6570\uff0c\u4f60\u7684\u4efb\u52a1\u5c31\u662f\u6c42\u51fa\u5b83\u4eec\u7684\u8fd0\u7b97\u7ed3\u679c\uff0c\u7b80\u5355\u5427\uff0c\u6765\u5427\u3002\u53ea\u8981\u5b8c\u6210\u4efb\u52a1\uff0c\u6f02\u4eae\u59b9\u59b9\u4f1a\u9a6c\u4e0a\u9001\u7ed9\u4f60\u4e00\u4e2a\u7f8e\u4e3d\u7684\u6c14\u7403\u3002\u795d\u4f60\u597d\u8fd0\uff01<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u5305\u542b\u591a\u7ec4\u6d4b\u8bd5\u6837\u4f8b\uff0c\u7b2c\u4e00\u884c\u6709\u4e00\u4e2a\u6574\u6570T\uff080 &lt; T &lt; 1000\uff09\uff0c\u8868\u793a\u6d4b\u8bd5\u6837\u4f8b\u7684\u7ec4\u6570\u3002\u7136\u540e\u662fT\u7ec4\u6d4b\u8bd5\u6837\u4f8b\uff0c\u6bcf\u7ec4\u5305\u542b\u4e00\u4e2a\u5b57\u7b26C\uff08+\u3001-\u3001* \u3001\/\uff09\u548c\u4e24\u4e2a\u6b63\u6574\u6570A\u548cB\uff080 &lt; A,B &lt; 10000\uff09\u3002\u5f53\u7136\uff0cA\u548cB\u662f\u64cd\u4f5c\u6570\uff0cC\u662f\u8fd0\u7b97\u7b26\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u5bf9\u4e8e\u6bcf\u7ec4\u6d4b\u8bd5\u8f93\u51fa\u6837\u4f8b\u5176\u8fd0\u7b97\u7ed3\u679c\uff0c\u5f53\u4e14\u4ec5\u5f53\u7ed3\u679c\u4e0d\u662f\u6574\u6570\u65f6\uff0c\u4fdd\u75592\u4f4d\u5c0f\u6570\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>4<br>+ 1 2<br>&#8211; 1 2<br>* 1 2<br>\/ 1 2<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>3<br>-1<br>2<br>0.50<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u9053\u9898\u4e5f\u5f88\u5bb9\u6613\uff0c\u8ddf\u7740\u9898\u76ee\u5199\uff0c\u522b\u5fd8\u4e86\u5206\u7c7b\u8ba8\u8bba\u548c\u6362\u884c\u54e6~<\/p>\n\n\n\n<p>\u8bb0\u5f97\u628a\u6362\u884c\u7b26\u7528getchar()\u8bfb\u8d70\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint main(){\n&nbsp; &nbsp;int t;\n&nbsp; &nbsp;while(~scanf(\"%d\",&amp;t)){\n\u200b\n&nbsp; &nbsp; &nbsp; &nbsp;for(int i = 1;i &lt;= t;i++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;char c;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int a,b;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;getchar();\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;scanf(\"%c %d %d\",&amp;c,&amp;a,&amp;b);\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;switch(c){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case '+':printf(\"%d\\n\",a + b);break;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case '-':printf(\"%d\\n\",a - b);break;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case '*':printf(\"%d\\n\",a * b);break;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case '\/':{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(a % b) printf(\"%.2f\\n\",1.0 * a \/ b);else printf(\"%d\\n\",a\/b);break;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; }\n&nbsp; }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1097\">3103 \u4e24\u500d\u5173\u7cfb<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u7ed9\u5b9a2\u523015\u4e2a\u4e0d\u540c\u7684\u6b63\u6574\u6570\uff0c\u4f60\u7684\u4efb\u52a1\u662f\u8ba1\u7b97\u8fd9\u4e9b\u6570\u91cc\u9762\u6709\u591a\u5c11\u4e2a\u6570\u5bf9\u6ee1\u8db3\uff1a\u6570\u5bf9\u4e2d\u4e00\u4e2a\u6570\u662f\u53e6\u4e00\u4e2a\u6570\u7684\u4e24\u500d\u3002 \u6bd4\u5982\u7ed9\u5b9a1 4 3 2 9 7 18 22\uff0c\u5f97\u5230\u7684\u7b54\u6848\u662f3\uff0c\u56e0\u4e3a2\u662f1\u7684\u4e24\u500d\uff0c4\u662f2\u4e2a\u4e24\u500d\uff0c18\u662f9\u7684\u4e24\u500d\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u5305\u62ec\u591a\u7ec4\u6d4b\u8bd5\u6570\u636e\u3002\u6bcf\u7ec4\u6570\u636e\u5305\u62ec\u4e00\u884c\uff0c\u7ed9\u51fa2\u523015\u4e2a\u4e24\u4e24\u4e0d\u540c\u4e14\u5c0f\u4e8e10000\u7684\u6b63\u6574\u6570\u3002\u6bcf\u4e00\u884c\u6700\u540e\u4e00\u4e2a\u6570\u662f0\uff0c\u8868\u793a\u8fd9\u4e00\u884c\u7684\u7ed3\u675f\u540e\uff0c\u8fd9\u4e2a\u6570\u4e0d\u5c5e\u4e8e\u90a32\u523015\u4e2a\u7ed9\u5b9a\u7684\u6b63\u6574\u6570\u3002\u8f93\u5165\u7684\u6700\u540e\u4e00\u884c\u53ea\u5305\u62ec\u4e00\u4e2a\u6574\u6570-1,\u8fd9\u884c\u8868\u793a\u8f93\u5165\u6570\u636e\u7684\u7ed3\u675f\uff0c\u4e0d\u7528\u8fdb\u884c\u5904\u7406\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u5bf9\u6bcf\u7ec4\u8f93\u5165\u6570\u636e\uff0c\u8f93\u51fa\u4e00\u884c\uff0c\u7ed9\u51fa\u6709\u591a\u5c11\u4e2a\u6570\u5bf9\u6ee1\u8db3\u5176\u4e2d\u4e00\u4e2a\u6570\u662f\u53e6\u4e00\u4e2a\u6570\u7684\u4e24\u500d\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>1 4 3 2 9 7 18 22 0<br>2 4 8 10 0<br>7 5 11 13 1 3 0<br>-1<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>3<br>2<br>0<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u7b80\u5355\u6a21\u62df~\u4e0b\u65b9\u662f\u7b14\u8005\u5927\u4e00\u65f6\u5199\u7684\u4ee3\u7801\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\n#include&lt;string.h&gt;\n\nint main(){\n&nbsp; &nbsp;int num&#91;1000] = {0};\n&nbsp; &nbsp;int j,k;\n\n&nbsp; &nbsp;while(1){\n&nbsp; &nbsp; &nbsp; &nbsp;int i = 1;\n&nbsp; &nbsp; &nbsp; &nbsp;int count = 0;\n&nbsp; &nbsp; &nbsp; &nbsp;scanf(\"%d\",&amp;num&#91;0]);\n&nbsp; &nbsp; &nbsp; &nbsp;if(num&#91;0]==-1)break;\n\n&nbsp; &nbsp; &nbsp; &nbsp;while(1){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;scanf(\"%d\",&amp;num&#91;i++]);\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(num&#91;i-1]==0){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; }\n\n\n&nbsp; &nbsp; &nbsp; &nbsp;for(j = 0;j &lt; i-1;j++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(k = j+1;k &lt; i-1;k++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(num&#91;j]==2*num&#91;k]||num&#91;k]==2*num&#91;j]){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;count++;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"%d\\n\",count);\n&nbsp; }\n\n\n&nbsp; &nbsp;return 0;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1098\">3111 \u6700\u5c0f\u516c\u500d\u6570<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u7ed9\u5b9a\u4e24\u4e2a\u6b63\u6574\u6570\uff0c\u8ba1\u7b97\u8fd9\u4e24\u4e2a\u6570\u7684\u6700\u5c0f\u516c\u500d\u6570\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u5305\u542b\u591a\u7ec4\u6d4b\u8bd5\u6570\u636e\uff0c\u6bcf\u7ec4\u53ea\u6709\u4e00\u884c\uff0c\u5305\u62ec\u4e24\u4e2a\u4e0d\u5927\u4e8e1000\u7684\u6b63\u6574\u6570\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u5bf9\u4e8e\u6bcf\u4e2a\u6d4b\u8bd5\u6570\u636e\uff0c\u7ed9\u51fa\u8fd9\u4e24\u4e2a\u6570\u7684\u6700\u5c0f\u516c\u500d\u6570\uff0c\u6bcf\u4e2a\u5b9e\u4f8b\u8f93\u51fa\u4e00\u884c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>10 14<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>70<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u6700\u5c0f\u516c\u500d\u6570\u7528\u6700\u5927\u516c\u7ea6\u6570\u6765\u6c42\u5c31\u597d~<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint gcd(int a,int b){\n&nbsp; &nbsp;return b == 0 ? a : gcd(b,a % b);\n}\nint main(){\n&nbsp; &nbsp;int a,b;\n&nbsp; &nbsp;while(~scanf(\"%d %d\",&amp;a,&amp;b)){\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"%d\\n\",a*b \/ gcd(a,b));\n&nbsp; }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1099\">3112 \u7eb8\u724c<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u4e00\u5f20\u6251\u514b\u724c\u53ef\u4ee5\u653e\u7f6e\u5728\u684c\u5b50\u7684\u8fb9\u7f18\uff0c\u53ea\u8981\u4f38\u51fa\u684c\u5b50\u8fb9\u7f18\u7684\u957f\u5ea6\u4e0d\u8d85\u8fc7\u6574\u5f20\u724c\u957f\u5ea6\u7684\u4e00\u534a\u5373\u53ef\u3002n\u5f20\u724c\u53e0\u8d77\u6765\u653e\u5728\u684c\u5b50\u7684\u8fb9\u7f18\uff0c\u5176\u6700\u957f\u53ef\u4f38\u51fa\u684c\u5b50\u8fb9\u7f18\u7684\u957f\u5ea6\u4e3a1\/2+1\/4+\u2026\u2026+1\/(2 * n)\uff0c\u8f93\u5165n\uff0c\u6309\u7167\u9898\u76ee\u8981\u6c42\u7684\u683c\u5f0f\u8f93\u51fan\u5f20\u724c\u53ef\u4f38\u51fa\u684c\u5b50\u8fb9\u7f18\u7684\u6700\u5927 \u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u6587\u4ef6\u5305\u62ec\u591a\u4e2a\u6d4b\u8bd5\u6570\u636e\uff0c\u6bcf\u4e2a\u6d4b\u8bd5\u6570\u636e\u5360\u4e00\u884c\uff0c\u4e3a\u4e00\u4e2a\u975e\u8d1f\u6574\u6570\u3002\u6bcf\u4e2a\u6574\u6570\u90fd\u662f\u5c0f\u4e8e99999\u7684\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u8f93\u51fa\u9996\u5148\u5305\u542b\u4e00\u4e2a\u6807\u9898\uff0c\u5373\u9996\u5148\u8f93\u51fa\u4e0b\u9762\u4e00\u884c\uff1a Cards Overhang \uff08Cards\u548cOverhang\u95f4\u6709\u4e24\u4e2a\u7a7a\u683c\uff09 \u5bf9\u8f93\u5165\u6587\u4ef6\u4e2d\u7684\u6bcf\u4e2a\u6d4b\u8bd5\u6570\u636e\uff0c\u9996\u5148\u8f93\u51fa\u724c\u7684\u6570\u76een\uff0c\u7136\u540e\u5728\u8f93\u51fan\u5f20\u724c\u6700\u957f\u53ef\u4f38\u51fa\u684c\u5b50\u8fb9\u7f18\u7684\u957f\u5ea6\uff0c\u4fdd\u7559\u5c0f\u6570\u70b9\u540e3\u4f4d\u6709\u6548\u6570\u5b57\uff0c\u5c0f\u6570\u70b9\u524d\u81f3\u5c11\u6709\u4e00\u4f4d\u6570\u3002\u724c\u7684\u6570\u76ee\u53f3\u5bf9\u9f50\u5230\u7b2c5\u5217\uff0c\u957f\u5ea6\u4e2d\u7684\u5c0f\u6570\u70b9\u5bf9\u9f50\u5230\u7b2c12\u5217\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>1<br>2<br>3<br>4<br>30<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>Cards Overhang<br>&nbsp; 1 &nbsp; &nbsp; 0.500<br>&nbsp; 2 &nbsp; &nbsp; 0.750<br>&nbsp; 3 &nbsp; &nbsp; 0.917<br>&nbsp; 4 &nbsp; &nbsp; 1.042<br>&nbsp; 30 &nbsp; &nbsp; 1.997<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u9053\u9898\u7b80\u5355\u6a21\u62df\u5c31\u884c\uff0c\u6ce8\u610f\u8f93\u51fa\u683c\u5f0f<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\ndouble solve(int n){\n&nbsp; &nbsp;double sum = 0;\n&nbsp; &nbsp;for(int i = 1;i &lt;= n;i++){\n&nbsp; &nbsp; &nbsp; &nbsp;sum += 1.0\/(2 * i);\n&nbsp; }\n&nbsp; &nbsp;return sum;\n}\nint main(){\n&nbsp; &nbsp;printf(\"Cards Overhang\\n\");\n&nbsp; &nbsp;int n;\n&nbsp; &nbsp;while(~scanf(\"%d\",&amp;n)){\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"%5d %9.3f\\n\",n,solve(n));\n&nbsp; }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1100\">3113 \u80bf\u7624\u9762\u79ef<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u5728\u4e00\u4e2a\u6b63\u65b9\u5f62\u7684\u7070\u5ea6\u56fe\u7247\u4e0a\uff0c\u80bf\u7624\u662f\u4e00\u5757\u77e9\u5f62\u7684\u533a\u57df\uff0c\u80bf\u7624\u7684\u8fb9\u7f18\u6240\u5728\u7684\u50cf\u7d20\u70b9\u5728\u56fe\u7247\u4e2d\u75280\u8868\u793a\u3002\u5176\u5b83\u80bf\u7624\u5185\u548c\u80bf\u7624\u5916\u7684\u70b9\u90fd\u7528255\u8868\u793a\u3002\u73b0\u5728\u8981\u6c42\u4f60\u7f16\u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u8ba1\u7b97\u80bf\u7624\u5185\u90e8\u7684\u50cf\u7d20\u70b9\u7684\u4e2a\u6570\uff08\u4e0d\u5305\u62ec\u80bf\u7624\u8fb9\u7f18\u4e0a\u7684\u70b9\uff09\u3002\u5df2\u77e5\u80bf\u7624\u7684\u8fb9\u7f18\u5e73\u884c\u4e8e\u56fe\u50cf\u7684\u8fb9\u7f18\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u53ea\u6709\u4e00\u4e2a\u6d4b\u8bd5\u6837\u4f8b\u3002\u7b2c\u4e00\u884c\u6709\u4e00\u4e2a\u6574\u6570n\uff0c\u8868\u793a\u6b63\u65b9\u5f62\u56fe\u50cf\u7684\u8fb9\u957f\u3002\u5176\u540en\u884c\u6bcf\u884c\u6709n\u4e2a\u6574\u6570\uff0c\u53d6\u503c\u4e3a0\u6216255\u3002\u6574\u6570\u4e4b\u95f4\u7528\u4e00\u4e2a\u7a7a\u683c\u9694\u5f00\u3002\u5df2\u77e5n\u4e0d\u5927\u4e8e1000\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u8f93\u51fa\u4e00\u884c\uff0c\u8be5\u884c\u5305\u542b\u4e00\u4e2a\u6574\u6570\uff0c\u4e3a\u8981\u6c42\u7684\u80bf\u7624\u5185\u7684\u50cf\u7d20\u70b9\u7684\u4e2a\u6570\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>5<br>255 255 255 255 255<br>255 0 0 0 255<br>255 0 255 0 255<br>255 0 0 0 255<br>255 255 255 255 255<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u6bd5\u7adf\u53ea\u6709\u4e00\u5757\u80bf\u7624\uff0c\u627e\u5230\u5468\u56f4\u4e00\u57080\uff0c\u7136\u540e\u770b\u770b\u91cc\u9762\u6709\u591a\u5c11\u4e2a255\u5c31\u597d\u3002<\/p>\n\n\n\n<p>\u4ee3\u7801\u5b9e\u73b0\u65b9\u5f0f\u5f88\u591a\uff0c\u7b14\u8005\u63a8\u8350\u8bfb\u8005\u81ea\u5df1\u5199\u4e00\u904d\u3002<\/p>\n\n\n\n<p>\u7b14\u8005\u91c7\u7528\u7684\u65b9\u5f0f\u662f\uff0c\u65e2\u7136\u662f\u4e00\u4e2a\u77e9\u9635\u533a\u57df\uff0c\u5c31\u628a\u53f3\u4e0b\u89d20\u51cf\u53bb\u5de6\u4e0a\u89d20\u7684\u5750\u6807\uff0c\u7136\u540e\u4e2d\u95f4\u90a3\u4e2a\u77e9\u9635\u7684\u9762\u79ef\u5c31\u662f\u80bf\u7624\u7684\u9762\u79ef\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint mx&#91;1005]&#91;1005];\nint main(){\n&nbsp; &nbsp;int n;\n&nbsp; &nbsp;scanf(\"%d\",&amp;n);\n&nbsp; &nbsp;int cnt = 0;\n&nbsp; &nbsp;for(int i = 1;i &lt;= n;i++){\n&nbsp; &nbsp; &nbsp; &nbsp;for(int j = 1;j &lt;= n;j++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;scanf(\"%d\",&amp;mx&#91;i]&#91;j]);\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(mx&#91;i]&#91;j] == 0) cnt++;\n&nbsp; &nbsp; &nbsp; }\n&nbsp; }\n&nbsp; &nbsp;int b_i = 0,b_j = 0;\n&nbsp; &nbsp;int e_i = 0,e_j = 0;\n&nbsp; &nbsp;int cnt2 = 0;\n&nbsp; &nbsp;for(int i = 1;i &lt;= n;i++){\n&nbsp; &nbsp; &nbsp; &nbsp;for(int j = 1;j &lt;= n;j++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(mx&#91;i]&#91;j] == 0) cnt2++;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(cnt2 == 1){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;b_i = i,b_j = j;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(cnt2 == cnt){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;e_i = i,e_j = j;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; }\n&nbsp; }\n&nbsp; &nbsp;printf(\"%d\\n\",(e_i - b_i - 2) * (e_j - b_j - 2));\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1101\">3201 A+B\u95ee\u9898<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u8bfb\u5165\u4e24\u4e2a\u5c0f\u4e8e10000\u7684\u6b63\u6574\u6570A\u548cB\uff0c\u8ba1\u7b97A+B\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff1a\u5982\u679cA\u548cB\u7684\u672b\u5c3eK\uff08\u4e0d\u8d85\u8fc78\uff09\u4f4d\u6570\u5b57\u76f8\u540c\uff0c\u8bf7\u76f4\u63a5\u8f93\u51fa-1\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u6d4b\u8bd5\u8f93\u5165\u5305\u542b\u82e5\u5e72\u6d4b\u8bd5\u6570\u636e\uff0c\u6bcf\u4e2a\u6d4b\u8bd5\u6570\u636e\u5360\u4e00\u884c\uff0c\u683c\u5f0f\u4e3aA B K\uff0c\u76f8\u90bb\u4e24\u6570\u5b57\u6709\u4e00\u4e2a\u7a7a\u683c\u95f4\u9694\u3002\u5f53A\u548cB\u540c\u65f6\u4e3a0\u65f6\u8f93\u5165\u7ed3\u675f\uff0c\u76f8\u5e94\u7684\u7ed3\u679c\u4e0d\u8981\u8f93\u51fa\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u5bf9\u6bcf\u4e2a\u6d4b\u8bd5\u6570\u636e\u8f93\u51fa1\u884c\uff0c\u5373A+B\u7684\u503c\u6216\u8005\u662f-1\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>1 2 1<br>11 21 1<br>108 8 2<br>36 64 3<br>0 0 1<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>3<br>-1<br>-1<br>100<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u9053\u9898\u5c31\u662f\u53bb\u6a21\u62df\uff0c\u5982\u679c\u672b\u5c3ek\u4f4d\u4e00\u81f4\u5c31\u8f93\u51fa-1\u3002\u600e\u4e48\u5224\u65ad\u672b\u5c3ek\u4f4d\u4e00\u81f4\uff0c\u8fd9\u4e2a\u5c31\u7528a % 10\u3001b % 10\u8fd9\u79cd\u5199\u6cd5\uff0c\u6c42\u51faa\u548cb\u7684\u6700\u540e\u4e00\u4f4d\uff0c\u7136\u540e\u4f5c\u6bd4\u8f83\u5c31\u884c\u3002\u5f53\u7136\uff0c\u4e5f\u53ef\u4ee5\u7528\u5b57\u7b26\u4e32\u6765\u5b58\u50a8a\u548cb\u53bb\u6bd4\u8f83\u4f1a\u5bb9\u6613\u4e00\u70b9\uff0c\u4f46\u662f\u8981\u5199\u4e2a\u5b57\u7b26\u4e32\u76f8\u52a0\u7684\u51fd\u6570\u5c31\u662f\u4e86\u3002\u7b14\u8005\u9f13\u52b1\u8bfb\u8005\u5c3d\u7ba1\u5c1d\u8bd5\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint solve(int a,int b,int k){\n&nbsp; &nbsp;while(a &amp;&amp; b){\n&nbsp; &nbsp; &nbsp; &nbsp;if(a % 10 != b % 10) break;\n&nbsp; &nbsp; &nbsp; &nbsp;k--;\n&nbsp; &nbsp; &nbsp; &nbsp;a \/= 10,b \/= 10;\n&nbsp; }\n&nbsp; &nbsp;if(a == 0 || b == 0 || k == 0) return 1;\n&nbsp; &nbsp;return 0;\n}\nint main(){\n&nbsp; &nbsp;int a,b,k;\n&nbsp; &nbsp;while(~scanf(\"%d %d %d\",&amp;a,&amp;b,&amp;k)){\n&nbsp; &nbsp; &nbsp; &nbsp;if(!a &amp;&amp; !b) break;\n&nbsp; &nbsp; &nbsp; &nbsp;if(solve(a,b,k)) printf(\"-1\\n\");\n&nbsp; &nbsp; &nbsp; &nbsp;else printf(\"%d\\n\",a + b);\n&nbsp; }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1102\">3202 \u6570\u5b57\u6c42\u548c<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u7ed9\u5b9a\u4e00\u4e2a\u6b63\u6574\u6570a\uff0c\u4ee5\u53ca\u53e6\u5916\u76845\u4e2a\u6b63\u6574\u6570\uff0c\u95ee\u9898\u662f\uff1a\u8fd95\u4e2a\u6574\u6570\u4e2d\uff0c\u5c0f\u4e8ea\u7684\u6574\u6570\u7684\u548c\u662f\u591a\u5c11\uff1f<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u6570\u636e\u6709\u5f88\u591a\u884c\u3002\u6bcf\u4e00\u884c\uff0c\u53ea\u5305\u62ec6\u4e2a\u5c0f\u4e8e100\u7684\u6b63\u6574\u6570\uff0c\u5176\u4e2d\u7b2c\u4e00\u4e2a\u6b63\u6574\u6570\u5c31\u662fa\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u9488\u5bf9\u6bcf\u884c\u8f93\u5165\uff0c\u8f93\u51fa\u4e00\u884c\uff0c\u7ed9\u51fa\u4e00\u4e2a\u6b63\u6574\u6570\uff0c\u662f5\u4e2a\u6570\u4e2d\u5c0f\u4e8ea\u7684\u6570\u7684\u548c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>10 1 2 3 4 11<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>10<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u5f88\u7b80\u5355\uff0c\u6ce8\u610f\u6709\u591a\u884c\u5c31\u597d\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint main(){\n&nbsp; &nbsp;int a;\n&nbsp; &nbsp;int sum = 0;\n&nbsp; &nbsp;while(~scanf(\"%d\",&amp;a)){\n&nbsp; &nbsp; &nbsp; &nbsp;sum = 0;\n&nbsp; &nbsp; &nbsp; &nbsp;for(int i = 1;i &lt;= 5;i++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int n;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;scanf(\"%d\",&amp;n);\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(n &lt; a) sum += n;\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"%d\\n\",sum);\n&nbsp; &nbsp; &nbsp; &nbsp;sum = 0;\n&nbsp; }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1103\">3203 \u8d22\u52a1\u7ba1\u7406<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>Larry\u4eca\u5e74\u6bd5\u4e1a\uff0c\u6700\u7ec8\u627e\u5230\u4e86\u4e00\u4efd\u5de5\u4f5c\u3002\u4ed6\u5f00\u59cb\u6323\u94b1\uff0c\u4f46\u662f\u4f3c\u4e4e\u6c38\u8fdc\u4e0d\u591f\u82b1\u7684\u3002Larry\u505a\u51fa\u51b3\u5b9a\uff0c\u6253\u7b97\u6295\u8d44\u4e00\u4e9b\u91d1\u878d\u8bc1\u5238\uff0c\u4ee5\u89e3\u51b3\u4ed6\u7684\u8d22\u52a1\u95ee\u9898\u3002\u9996\u5148\u9700\u8981\u7684\u5c31\u662f\u5f04\u6e05\u695a\u4ed6\u6bcf\u4e2a\u6708\u7684\u5f00\u9500\u3002Larry\u6709\u4e00\u4efd\u94f6\u884c\u8d26\u76ee\u6e05\u5355\uff0c\u4ed6\u60f3\u770b\u5230\u4ed6\u6709\u591a\u5c11\u94b1\u3002\u8bf7\u5e2e\u52a9Larry\u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u8ba1\u7b97\u4ed6\u8fc7\u53bb\u7684\u5341\u4e8c\u4e2a\u6708\u7684\u8d26\u6237\u5e73\u5747\u4f59\u989d\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u4e00\u5171\u670912\u884c\uff0c\u6bcf\u884c\u90fd\u662f\u76f8\u5e94\u6708\u4efd\u7684\u94f6\u884c\u8d26\u6237\u4f59\u989d\u3002\u6bcf\u4e2a\u6570\u5b57\u90fd\u662f\u6b63\u6570\uff0c\u7cbe\u786e\u5230\u5206\u3002\u8fd9\u91cc\u4e0d\u5305\u62ec\u7f8e\u5143\u7b26\u53f7\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u8f93\u51fa\u4e00\u4e2a\u6570\u5b57\uff0c\u8868\u793a\u8fd9\u5341\u4e8c\u4e2a\u6708\u7684\u5e73\u5747\u503c\u3002\u9700\u8981\u56db\u820d\u4e94\u5165\u5230\u5206\u3002\u6570\u5b57\u524d\u9762\u9700\u8981\u5305\u542b\u4e00\u4e2a\u7f8e\u5143\u7b26\u53f7\u3002\u6ca1\u6709\u5176\u4ed6\u7a7a\u683c\u6216\u5b57\u7b26\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>100.00<br>489.12<br>12454.12<br>1234.10<br>823.05<br>109.20<br>5.27<br>1542.25<br>839.18<br>83.99<br>1295.01<br>1.75<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>$1581.42<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u5f88\u7b80\u5355\uff0c\u4e0d\u8bc4\u4ef7\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint main(){\n&nbsp; &nbsp;double n;\n&nbsp; &nbsp;double sum = 0;\n&nbsp; &nbsp;for(int i = 1;i &lt;= 12;i++){\n&nbsp; &nbsp; &nbsp; &nbsp;scanf(\"%lf\",&amp;n);\n&nbsp; &nbsp; &nbsp; &nbsp;sum += n;\n&nbsp; }\n&nbsp; &nbsp;double aver = sum \/ 12;\n&nbsp; &nbsp;printf(\"$%.2lf\",aver);\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1104\">3204 \u6821\u95e8\u5916\u7684\u6811\u6728<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u67d0\u6821\u5927\u95e8\u5916\u957f\u5ea6\u4e3aL\u7684\u9a6c\u8def\u4e0a\u6709\u4e00\u6392\u6811\uff0c\u6bcf\u4e24\u68f5\u76f8\u90bb\u7684\u6811\u4e4b\u95f4\u7684\u95f4\u9694\u90fd\u662f1\u7c73\u3002\u6211\u4eec\u53ef\u4ee5\u628a\u9a6c\u8def\u770b\u6210\u4e00\u4e2a\u6570\u8f74\uff0c\u9a6c\u8def\u7684\u4e00\u7aef\u5728\u6570\u8f740\u7684\u4f4d\u7f6e\uff0c\u53e6\u4e00\u7aef\u5728L\u7684\u4f4d\u7f6e\uff1b\u6570\u8f74\u4e0a\u7684\u6bcf\u4e2a\u6574\u6570\u70b9\uff0c\u53730\uff0c1\uff0c2\uff0c\u2026\u2026\uff0cL\uff0c\u90fd\u79cd\u6709\u4e00\u68f5\u6811\u3002\u7531\u4e8e\u9a6c\u8def\u4e0a\u6709\u4e00\u4e9b\u533a\u57df\u8981\u7528\u6765\u5efa\u5730\u94c1\u3002\u8fd9\u4e9b\u533a\u57df\u7528\u5b83\u4eec\u5728\u6570\u8f74\u4e0a\u7684\u8d77\u59cb\u70b9\u548c\u7ec8\u6b62\u70b9\u8868\u793a\u3002\u5df2\u77e5\u4efb\u4e00\u533a\u57df\u7684\u8d77\u59cb\u70b9\u548c\u7ec8\u6b62\u70b9\u7684\u5750\u6807\u90fd\u662f\u6574\u6570\uff0c\u533a\u57df\u4e4b\u95f4\u53ef\u80fd\u6709\u91cd\u5408\u7684\u90e8\u5206\u3002\u73b0\u5728\u8981\u628a\u8fd9\u4e9b\u533a\u57df\u4e2d\u7684\u6811\uff08\u5305\u62ec\u533a\u57df\u7aef\u70b9\u5904\u7684\u4e24\u68f5\u6811\uff09\u79fb\u8d70\u3002\u4f60\u7684\u4efb\u52a1\u662f\u8ba1\u7b97\u5c06\u8fd9\u4e9b\u6811\u90fd\u79fb\u8d70\u540e\uff0c\u9a6c\u8def\u4e0a\u8fd8\u6709\u591a\u5c11\u68f5\u6811\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u7684\u7b2c\u4e00\u884c\u6709\u4e24\u4e2a\u6574\u6570L\uff081 &lt;= L &lt;= 10000\uff09\u548c M\uff081 &lt;= M &lt;= 100\uff09\uff0cL\u4ee3\u8868\u9a6c\u8def\u7684\u957f\u5ea6\uff0cM\u4ee3\u8868\u533a\u57df\u7684\u6570\u76ee\uff0cL\u548cM\u4e4b\u95f4\u7528\u4e00\u4e2a\u7a7a\u683c\u9694\u5f00\u3002\u63a5\u4e0b\u6765\u7684M\u884c\u6bcf\u884c\u5305\u542b\u4e24\u4e2a\u4e0d\u540c\u7684\u6574\u6570\uff0c\u7528\u4e00\u4e2a\u7a7a\u683c\u9694\u5f00\uff0c\u8868\u793a\u4e00\u4e2a\u533a\u57df\u7684\u8d77\u59cb\u70b9\u548c\u7ec8\u6b62\u70b9\u7684\u5750\u6807\u3002\u6ce8\u610f\u8f93\u5165\u6570\u636e\u53ef\u80fd\u6709\u5f88\u591a\u7ec4\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u8f93\u51fa\u5305\u62ec\u4e00\u884c\uff0c\u8fd9\u4e00\u884c\u53ea\u5305\u542b\u4e00\u4e2a\u6574\u6570\uff0c\u8868\u793a\u9a6c\u8def\u4e0a\u5269\u4f59\u7684\u6811\u7684\u6570\u76ee\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>500 3<br>150 300<br>100 200<br>470 471<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>298<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u9053\u9898\u6211\u4eec\u7528vis\u6570\u7ec4\u5b58\u50a8\u54ea\u4e9b\u90e8\u5206\u88ab\u5904\u7406\u8fc7\u4e86\uff0c\u8fd8\u662f\u5f88\u5bb9\u6613\u7684\u3002\u8be6\u60c5\u53c2\u8003\u4ee3\u7801\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint vis&#91;10005];\nint main(){\n&nbsp; &nbsp;int l,m;\n&nbsp; &nbsp;scanf(\"%d %d\",&amp;l,&amp;m);\n&nbsp; &nbsp;for(int i = 1;i &lt;= m;i++){\n&nbsp; &nbsp; &nbsp; &nbsp;int begin,end;\n&nbsp; &nbsp; &nbsp; &nbsp;scanf(\"%d %d\",&amp;begin,&amp;end);\n&nbsp; &nbsp; &nbsp; &nbsp;for(int j = begin;j &lt;= end;j++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vis&#91;j]++;\n&nbsp; &nbsp; &nbsp; }\n&nbsp; }\n&nbsp; &nbsp;int cnt = 0;\n&nbsp; &nbsp;for(int i = 1;i &lt;= l;i++){\n&nbsp; &nbsp; &nbsp; &nbsp;if(vis&#91;i]) cnt++;\n&nbsp; }\n&nbsp; &nbsp;printf(\"%d\\n\",l - cnt + 1);\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1105\">3205 \u76f4\u89d2\u4e09\u89d2\u5f62<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u5f53\u4f60\u62e5\u6709\u8ba1\u7b97\u673a\u540e\uff0c\u6570\u5b66\u8fd0\u7b97\u5c31\u53d8\u5f97\u975e\u5e38\u7b80\u5355\u4e86\u3002\u4e3e\u4e2a\u4f8b\u5b50\u6765\u8bf4\uff0c\u4f60\u53ef\u80fd\u77e5\u9053\u76f4\u89d2\u4e09\u89d2\u5f62\u7684\u5b9a\u4e49\uff1a\u5982\u679c3\u8fb9a\uff0cb\uff0cc\uff08\u5047\u5b9ac\u4e3a\u6700\u957f\u7684\u8fb9\uff0c\u4e5f\u5c31\u662f\u659c\u8fb9\uff09\u6ee1\u8db3\u5982\u4e0b\u5173\u7cfb\uff1aa * a + b * b = c * c\uff0c\u90a3\u4e48\u8fd9\u4e2a\u5c31\u662f\u76f4\u89d2\u4e09\u89d2\u5f62\u3002\u8fd9\u5c31\u662f\u6240\u8c13\u7684\u6bd5\u8fbe\u54e5\u62c9\u65af\uff08Pythagora\uff09\u5b9a\u5f8b\u3002 \u8fd9\u91cc\u5982\u679c\u7ed9\u5b9a\u5176\u4e2d\u7684\u4e24\u4e2a\u8fb9\uff0c\u5982\u4f55\u8ba1\u7b97\u7b2c\u4e09\u8fb9\u7684\u957f\u5ea6\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u5305\u542b\u4e00\u4e9b\u4e09\u89d2\u5f62\u7684\u63cf\u8ff0\uff0c\u6bcf\u4e2a\u63cf\u8ff0\u5360\u4e00\u884c\uff0c\u5305\u62ec\u4e86\u4e09\u4e2a\u6574\u6570a\uff0cb\u548cc\uff0c\u8868\u793a\u5bf9\u5e94\u7684\u76f4\u89d2\u4e09\u89d2\u5f62\u7684\u4e09\u4e2a\u8fb9\u3002\u4e09\u4e2a\u6570\u5b57\u5f53\u4e2d\u6709\u4e00\u4e2a\u7b49\u4e8e-1\uff08\u8868\u793a\u672a\u77e5\u7684\u8fb9\uff09\uff0c\u5176\u4f59\u4e24\u4e2a\u90fd\u662f\u6b63\u6570\uff08\u8868\u793a\u5df2\u77e5\u7684\u8fb9\uff09\u3002\u5982\u679ca=b=c=0\u8868\u793a\u8f93\u5165\u7ed3\u675f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u5bf9\u4e8e\u6bcf\u4e2a\u8f93\u5165\u7684\u4e09\u89d2\u5f62\uff0c\u9996\u5148\u8981\u8f93\u51fa\u4e09\u89d2\u5f62\u7684\u5e8f\u53f7\uff0c\u5982\u8f93\u51fa\u6837\u4f8b\u6240\u793a\u3002\u5982\u679c\u4e0d\u80fd\u6784\u6210\u76f4\u89d2\u4e09\u89d2\u5f62\uff0c\u8f93\u51fa\u201cImpossible.\u201d\u3002\u5426\u5219\uff0c\u8f93\u51fa\u4e3a\u201cs = L\u201d\uff0c\u5176\u4e2ds\u662f\u672a\u77e5\u8fb9\u7684\u540d\u79f0\uff08a\uff0cb\u6216c\uff09\uff0cL\u4e3a\u5176\u957f\u5ea6\uff0c\u7cbe\u786e\u5230\u5c0f\u6570\u70b9\u540e\u4e09\u4f4d\u3002 \u6bcf\u4e2a\u6d4b\u8bd5\u6570\u636e\u540e\u8f93\u51fa\u4e00\u4e2a\u7a7a\u884c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>3 4 -1<br>-1 2 7<br>5 -1 3<br>0 0 0<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>Triangle #1<br>c = 5.000<br>\u200b<br>Triangle #2<br>a = 6.708<br>\u200b<br>Triangle #3<br>Impossible.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u9053\u9898\u4e5f\u5f88\u7b80\u5355\uff0c\u76f4\u63a5\u7b97\u5c31\u597d\uff0c\u6ce8\u610f\u4fdd\u7559\u5c0f\u6570\u4f4d\u548c\u683c\u5f0f\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\n#include&lt;math.h&gt;\nint main(){\n&nbsp; &nbsp;double a,b,c;\n&nbsp; &nbsp;int t = 0;\n&nbsp; &nbsp;while(~scanf(\"%lf %lf %lf\",&amp;a,&amp;b,&amp;c)){\n&nbsp; &nbsp; &nbsp; &nbsp;t++;\n&nbsp; &nbsp; &nbsp; &nbsp;if(!a &amp;&amp; !b &amp;&amp; !c) break;\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"Triangle #%d\\n\",t);\n&nbsp; &nbsp; &nbsp; &nbsp;if(a == -1){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;a = sqrt(c * c - b * b);\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(a &lt; c &amp;&amp; b &lt; c){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;printf(\"a = %.3f\\n\",a);\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;printf(\"Impossible.\\n\");\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;if(b == -1){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;b = sqrt(c * c - a * a);\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(a &lt; c &amp;&amp; b &lt; c){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;printf(\"b = %.3f\\n\",b);\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;printf(\"Impossible.\\n\");\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;if(c == -1){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;c = sqrt(a * a + b * b);\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(a &lt; c &amp;&amp; b &lt; c){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;printf(\"c = %.3f\\n\",c);\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;printf(\"Impossible.\\n\");\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"\\n\")\n&nbsp; }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1106\">3206 \u5316\u9a8c\u8bca\u65ad<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u4e0b\u8868\u662f\u8fdb\u884c\u8840\u5e38\u89c4\u68c0\u9a8c\u7684\u6b63\u5e38\u503c\u53c2\u8003\u8303\u56f4\uff0c\u53ca\u5316\u9a8c\u503c\u5f02\u5e38\u7684\u4e34\u5e8a\u610f\u4e49\uff1a<\/p>\n\n\n\n<p>\u8840\u5e38\u89c4\u68c0\u9a8c\u6b63\u5e38\u503c\u53c2\u8003\u8303\u56f4\u5217\u8868<\/p>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.nenuacm.top\/wp-content\/uploads\/2024\/02\/image-2.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"682\" height=\"279\" data-original=\"https:\/\/www.nenuacm.top\/wp-content\/uploads\/2024\/02\/image-2.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"3206.png\" class=\"wp-image-165\"  sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/div><\/figure>\n\n\n\n<p>\u7ed9\u5b9a\u4e00\u5f20\u5316\u9a8c\u5355\uff0c\u5224\u65ad\u5176\u6240\u6709\u6307\u6807\u662f\u5426\u6b63\u5e38\uff0c\u5982\u679c\u4e0d\u6b63\u5e38\uff0c\u7edf\u8ba1\u6709\u51e0\u9879\u4e0d\u6b63\u5e38\u3002\u5316\u9a8c\u5355\u4e0a\u7684\u503c\u5fc5\u987b\u4e25\u683c\u843d\u5728\u6b63\u5e38\u53c2\u8003\u503c\u8303\u56f4\u5185\uff0c\u624d\u7b97\u662f\u6b63\u5e38\u3002\u6b63\u5e38\u53c2\u8003\u503c\u8303\u56f4\u5305\u62ec\u8fb9\u754c\uff0c\u5373\u843d\u5728\u8fb9\u754c\u4e0a\u4e5f\u7b97\u6b63\u5e38\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u7684\u7b2c\u4e00\u884c\u5305\u542b\u4e00\u4e2a\u6b63\u6574\u6570k(0 &lt; k &lt; 100)\uff0c\u8868\u793a\u6709k\u7ec4\u6d4b\u8bd5\u6570\u636e\uff1b\u63a5\u4e0b\u6765k\u884c\uff0c\u6bcf\u884c\u5305\u542b\u4e00\u7ec4\u6d4b\u8bd5\u6570\u636e\u3002\u6bcf\u7ec4\u6d4b\u8bd5\u6570\u636e\u7b2c\u4e00\u9879\u662f\u4e00\u4e2a\u82f1\u6587\u5355\u8bcd\uff08male\uff0c\u7537\u6216\u8005female\uff0c\u5973\uff09\uff0c\u8868\u793a\u53d7\u6d4b\u8005\u7684\u6027\u522b\uff1b\u7b2c\u4e8c\u9879\u662f\u767d\u7ec6\u80de\u7684\u503c\uff08\u4ee5109\/L\u4e3a\u5355\u4f4d\uff09\uff1b\u7b2c\u4e09\u9879\u662f\u7ea2\u7ec6\u80de\u7684\u503c\uff08\u4ee51012\/L\u4e3a\u5355\u4f4d\uff09\uff1b\u7b2c\u56db\u9879\u662f\u8840\u7ea2\u86cb\u767d\u7684\u503c\uff08\u4ee5g\/L\u4e3a\u5355\u4f4d\uff09\uff1b\u7b2c\u4e94\u9879\u662f\u7ea2\u7ec6\u80de\u6bd4\u79ef\u7684\u503c\uff08\u4ee5%\u4e3a\u5355\u4f4d\uff09\uff1b\u7b2c\u516d\u9879\u662f\u8840\u5c0f\u677f\u8ba1\u6570\u7684\u503c\uff08\u4ee5109\/L\u4e3a\u5355\u4f4d\uff09\u3002\u6bcf\u4e24\u9879\u7528\u4e00\u4e2a\u7a7a\u683c\u5206\u5f00\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u5bf9\u4e8e\u6bcf\u7ec4\u6d4b\u8bd5\u6570\u636e\uff0c\u8f93\u51fa\u4e00\u884c\u3002\u5982\u679c\u6240\u6709\u68c0\u9a8c\u9879\u76ee\u6b63\u5e38\uff0c\u5219\u8f93\u51fa\uff1anormal\uff1b\u5426\u5219\u8f93\u51fa\u4e0d\u6b63\u5e38\u7684\u9879\u7684\u6570\u76ee\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>2<br>female 4.5 4.0 115 37 200<br>male 3.9 3.5 155 36 301<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>normal<br>3<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u9053\u9898\u5c31\u662f\u5b9e\u73b0\u6bd4\u8f83\u9ebb\u70e6\uff0c\u662f\u4e2a\u6bd4\u8f83\u591a\u7684\u6a21\u62df\uff0c\u4e0b\u9762\u732e\u4e0a\u7b14\u8005\u5927\u4e00\u7684\u4ee3\u7801~\u8bfb\u8005\u81ea\u884c\u6a21\u62df\u5373\u53ef\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\n#include&lt;math.h&gt;\nint main(){\n\n&nbsp; &nbsp;int k;\n&nbsp; &nbsp;char str&#91;1000];\n&nbsp; &nbsp;double wbc,rbc;\n&nbsp; &nbsp;int hgb,hct,plt;\n&nbsp; &nbsp;scanf(\"%d\",&amp;k);\n&nbsp; &nbsp;getchar();\n&nbsp; &nbsp;while(k--){\n&nbsp; &nbsp; &nbsp; &nbsp;int flag&#91;5] = {0};\n&nbsp; &nbsp; &nbsp; &nbsp;int count = 0;\n&nbsp; &nbsp; &nbsp; &nbsp;int sign = 0;\n&nbsp; &nbsp; &nbsp; &nbsp;int i;\n\n&nbsp; &nbsp; &nbsp; &nbsp;\/\/gets(str);\n\n&nbsp; &nbsp; &nbsp; &nbsp;scanf(\"%s %lf %lf %d %d %d\",str,&amp;wbc,&amp;rbc,&amp;hgb,&amp;hct,&amp;plt);\n&nbsp; &nbsp; &nbsp; &nbsp;if(str&#91;0]=='f'){\n\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(fabs(wbc-4.0)&lt;1e-6||(wbc&gt;=4.0&amp;&amp;wbc&lt;=10.0)||fabs(wbc-10.0)&lt;1e-6){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;0] = 0;\n\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;0] = 1;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;count++;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(fabs(rbc-3.5)&lt;1e-6||(rbc&gt;=3.5&amp;&amp;rbc&lt;=5.5)||fabs(rbc-5.5)&lt;1e-6){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;1] = 0;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;1] = 1;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;count++;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(hgb&gt;=110&amp;&amp;hgb&lt;=150){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;2] = 0;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;2] = 1;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;count++;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(hct&gt;=36&amp;&amp;hct&lt;=40){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;3] = 0;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;3] = 1;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;count++;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(plt&gt;=100&amp;&amp;plt&lt;=300){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;4] = 0;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;4] = 1;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;count++;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n\n\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;else if(str&#91;0]=='m'){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(fabs(wbc-4.0)&lt;1e-6||(wbc&gt;=4.0&amp;&amp;wbc&lt;=10.0)||fabs(wbc-10.0)&lt;1e-6){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;0] = 0;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;0] = 1;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;count++;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(fabs(rbc-3.5)&lt;1e-6||(rbc&gt;=3.5&amp;&amp;rbc&lt;=5.5)||fabs(rbc-5.5)&lt;1e-6){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;1] = 0;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;1] = 1;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;count++;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(hgb&gt;=120&amp;&amp;hgb&lt;=160){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;2] = 0;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;2] = 1;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;count++;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(hct&gt;=42&amp;&amp;hct&lt;=48){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;3] = 0;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;3] = 1;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;count++;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(plt&gt;=100&amp;&amp;plt&lt;=300){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;4] = 0;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;flag&#91;4] = 1;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;count++;\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\n\n&nbsp; &nbsp; &nbsp; }\n\n&nbsp; &nbsp; &nbsp; &nbsp;for(i = 0;i &lt; 5;i++){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(flag&#91;i] == 1)\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sign = 1;\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; &nbsp; &nbsp;if(sign == 0){\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;printf(\"normal\\n\");\n&nbsp; &nbsp; &nbsp; }else{\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;printf(\"%d\\n\",count);\n&nbsp; &nbsp; &nbsp; }\n\n&nbsp; }\n\n\n&nbsp; &nbsp;return 0;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1107\">3207 \u6570\u5b57\u9636\u68af<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u4ece\u5750\u6807\uff080\uff0c0\uff09\u51fa\u53d1\uff0c\u5728\u5e73\u9762\u4e0a\u5199\u4e0b\u6240\u6709\u975e\u8d1f\u6574\u65700\uff0c1\uff0c2\uff0c\u2026\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u4f8b\u59821\u30012\u548c3\u5206\u522b\u662f\u5728\uff081\uff0c1\uff09\u3001\uff082\uff0c0\uff09\u548c\uff083\uff0c1\uff09\u5750\u6807\u5904\u5199\u4e0b\u7684\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.nenuacm.top\/wp-content\/uploads\/2024\/02\/image.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"214\" height=\"196\" data-original=\"https:\/\/www.nenuacm.top\/wp-content\/uploads\/2024\/02\/image.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"3207.png\" class=\"wp-image-163\"\/><\/div><\/figure>\n\n\n\n<p>\u6570\u5b57\u9636\u68af<\/p>\n\n\n\n<p>\u7f16\u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u7ed9\u5b9a\u5750\u6807\uff08x\uff0cy\uff09\uff0c\u8f93\u51fa\u5bf9\u5e94\u7684\u6574\u6570\uff08\u5982\u679c\u5b58\u5728\u7684\u8bdd\uff09\uff0c\u8f93\u5165\u6587\u4ef6\u4e2d\u7684x\uff0cy\u5750\u6807\u8303\u56f4\u90fd\u662f0~5000\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u6587\u4ef6\u7684\u7b2c\u4e00\u884c\u4e3a\u6b63\u6574\u6570N\uff0c\u8868\u793a\u8f93\u5165\u6587\u4ef6\u4e2d\u6d4b\u8bd5\u6570\u636e\u7684\u6570\u76ee\u3002\u63a5\u4e0b\u6765\u662fN\u4e2a\u6d4b\u8bd5\u6570\u636e\uff0c\u6bcf\u4e2a\u6d4b\u8bd5\u6570\u636e\u5360\u4e00\u884c\uff0c\u5305\u542b\u4e24\u4e2a\u6574\u6570\uff1ax\u548cy\uff0c\u4ee3\u8868\u5e73\u9762\u4e0a\u7684\u5750\u6807\uff08x\uff0cy\uff09\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u5bf9\u8f93\u5165\u6587\u4ef6\u4e2d\u6bcf\u4e00\u884c\u6240\u8868\u793a\u7684\u5750\u6807\u70b9\uff0c\u8f93\u51fa\u5728\u8be5\u70b9\u7684\u975e\u8d1f\u6574\u6570\uff0c\u5982\u679c\u6ca1\u6709\u5bf9\u5e94\u6574\u6570\uff0c\u8f93\u51fa\u201cNo Number\u201d\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>3<br>4 2<br>6 6<br>3 4<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>6<br>12<br>No Number<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u9053\u9898\u89c2\u5bdf\u6570\u8f74\u4e0a\u7684\u4e00\u6b21\u51fd\u6570\uff0c\u5f97\u51fa\u89c4\u5f8b\u5c31\u884c\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\nint main(){\n\n\tint n;\n\tscanf(\"%d\",&amp;n);\n\twhile(n--){\n\t\tint x,y;\n\t\tscanf(\"%d %d\",&amp;x,&amp;y);\n\t\tif(x==y||(x-y)==2){\n\t\t\tif(x==y){\n\t\t\t\tif(x%2==0){\n\t\t\t\t\tprintf(\"%d\\n\",2*x);\n\t\t\t\t}else{\n\t\t\t\t\tprintf(\"%d\\n\",2*(x-1)+1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(x%2==0){\n\t\t\t\t\tprintf(\"%d\\n\",x+y);\n\t\t\t\t}else{\n\t\t\t\t\tprintf(\"%d\\n\",x+y-1);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}else{\n\t\t\tprintf(\"No Number\\n\");\n\t\t}\n\t}\n\treturn 0;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"http:\/\/39.101.69.154\/problem.php?id=1108\">3208 \u4e00\u4e2a\u7b80\u5355\u7684\u5316\u5b66\u95ee\u9898<\/a><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h4 class=\"wp-block-heading\">\u9898\u76ee\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u4f60\u4eec\u5316\u5b66\u5b9e\u9a8c\u5ba4\u7684\u52a9\u6559\u662f\u4e00\u540d\u975e\u5e38\u70ed\u5fc3\u7684\u7814\u7a76\u751f\uff0c\u4ed6\u8981\u6c42\u4f60\u5728\u6df7\u5408\u5b9e\u9a8c\u65f6\u76d1\u6d4b\u6574\u4e2a\u5b9e\u9a8c\u5ba4\u6bcf\u5206\u949f\u7684\u6e29\u5ea6\uff0c\u4ee5\u4fbf\u80fd\u591f\u7ed8\u5236\u51fa\u6574\u4e2a\u5b9e\u9a8c\u5ba4\u7684\u6e29\u5ea6\u53d8\u5316\u7387\u3002 \u4f5c\u4e3a\u4e00\u540d\u6709\u524d\u9014\u7684\u8ba1\u7b97\u673a\u79d1\u5b66\u5bb6\uff0c\u4f60\u77e5\u9053\u53ef\u4ee5\u81ea\u52a8\u5904\u7406\u8fd9\u4e2a\u8fc7\u7a0b\u3002\u56e0\u6b64\uff0c\u4f60\u5199\u4e86\u4e00\u6bb5\u7a0b\u5e8f\uff0c\u5728\u5b9e\u9a8c\u7684\u65f6\u5019\u8fd0\u884c\u5728\u5b9e\u9a8c\u5ba4\u7684\u7b14\u8bb0\u672c\u7535\u8111\u4e0a\u3002\u4f60\u5c06\u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u8f93\u5165\u6bcf\u4e2a\u89c2\u6d4b\u5230\u7684\u6e29\u5ea6\uff0c\u7a0b\u5e8f\u5c06\u81ea\u52a8\u8ba1\u7b97\u5f53\u524d\u6e29\u5ea6\u4e0e\u524d\u4e00\u4e2a\u6e29\u5ea6\u95f4\u7684\u5dee\u503c\uff0c\u7136\u540e\u8f93\u51fa\u5b83\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u5165<\/h4>\n\n\n\n<p>\u8f93\u5165\u4e00\u7cfb\u5217\u7684\u6e29\u5ea6\uff0c\u6bcf\u4e2a\u6e29\u5ea6\u5360\u4e00\u884c\uff0c\u6e29\u5ea6\u7684\u8303\u56f4\u4ece-10 \u5230200\uff0c\u6e29\u5ea6\u7cbe\u786e\u5230\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u3002\u6570\u5b57999\u8868\u793a\u8f93\u5165\u6570\u636e\u7ed3\u675f\u3002\u6570\u636e\u96c6\u4e2d\u81f3\u5c11\u6709\u4e24\u4e2a\u6e29\u5ea6\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8f93\u51fa<\/h4>\n\n\n\n<p>\u4f60\u7684\u7a0b\u5e8f\u5c06\u8f93\u51fa\u4e00\u7cfb\u5217\u6e29\u5ea6\u7684\u5dee\u503c\u3002\u5dee\u503c\u9700\u8981\u4fdd\u7559\u5c0f\u6570\u70b9\u4e24\u4f4d\uff0c\u5e76\u4e14\u6ca1\u6709\u524d\u5bfc0\uff08\u9664\u975e\u5c0f\u4e8e1\uff0c\u4f8b\u59820.01\uff09\u6216\u7a7a\u683c\u3002 \u6240\u6709\u8f93\u51fa\u7ed3\u675f\u540e\uff0c\u8f93\u51fa\u4e00\u884cEnd of Output\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u5165 \u590d\u5236<\/h4>\n\n\n\n<p>10.0<br>12.05<br>30.25<br>20<br>999<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6837\u4f8b\u8f93\u51fa \u590d\u5236<\/h4>\n\n\n\n<p>2.05<br>18.20<br>-10.25<br>End of Output<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u601d\u8def\uff1a<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u7b80\u5355\u6a21\u62df\uff0c\u4e0d\u518d\u591a\u8bf4\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801C\u8bed\u8a00\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\ndouble a,b;\nint main(){\n&nbsp; &nbsp;scanf(\"%lf\",&amp;a);\n&nbsp; &nbsp;while(~scanf(\"%lf\",&amp;b)){\n&nbsp; &nbsp; &nbsp; &nbsp;if(a == 999 || b == 999) break;\n&nbsp; &nbsp; &nbsp; &nbsp;printf(\"%.2lf\\n\",b - a);\n&nbsp; &nbsp; &nbsp; &nbsp;a = b;\n&nbsp; }\n&nbsp; &nbsp;printf(\"End of Output\\n\");\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u603b\u7ed3<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u9898\u76ee\u96be\u5ea6\u7b80\u5355\uff0c\u63a8\u8350\u8bfb\u8005\u5c3d\u91cf\u4e0d\u770b\u9898\u89e3\u81ea\u884c\u601d\u8003\u3002<\/li>\n\n\n\n<li>\u8003\u5bdf\u7684\u90fd\u662f\u6a21\u62df\u65b9\u9762\u7684\u77e5\u8bc6\uff0c\u9664\u4e86 3007 \u88c5\u7bb1\u95ee\u9898 \u8003\u5bdf\u4e86\u8d2a\u5fc3\u7684\u60f3\u6cd5\uff0c\u90a3\u9053\u9898\u76ee\u8f83\u4e3a\u96be\u5199\uff0c\u6c34\u5e73\u4e0d\u8db3\u53ef\u4ee5\u6682\u65f6\u8df3\u8fc7\u3002<\/li>\n\n\n\n<li>\u53ef\u4ee5\u53c2\u8003\u5b66\u4e60\u4e00\u4e0b\u7b14\u8005\u7684\u90e8\u5206\u4ee3\u7801\u98ce\u683c\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>3001 \u6700\u5927\u516c\u7ea6\u6570 \u9898\u76ee\u63cf\u8ff0 \u8f93\u5165\u4e24\u4e2a\u6574\u6570a\uff0cb (1 &lt;= a,b &lt;= 100000000) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,8],"tags":[],"class_list":["post-162","post","type-post","status-publish","format-standard","hentry","category-nenuoj","category-8"],"_links":{"self":[{"href":"https:\/\/www.nenuacm.top\/index.php\/wp-json\/wp\/v2\/posts\/162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nenuacm.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nenuacm.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nenuacm.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nenuacm.top\/index.php\/wp-json\/wp\/v2\/comments?post=162"}],"version-history":[{"count":5,"href":"https:\/\/www.nenuacm.top\/index.php\/wp-json\/wp\/v2\/posts\/162\/revisions"}],"predecessor-version":[{"id":199,"href":"https:\/\/www.nenuacm.top\/index.php\/wp-json\/wp\/v2\/posts\/162\/revisions\/199"}],"wp:attachment":[{"href":"https:\/\/www.nenuacm.top\/index.php\/wp-json\/wp\/v2\/media?parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nenuacm.top\/index.php\/wp-json\/wp\/v2\/categories?post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nenuacm.top\/index.php\/wp-json\/wp\/v2\/tags?post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}