{"id":136,"date":"2023-12-26T17:48:00","date_gmt":"2023-12-26T09:48:00","guid":{"rendered":"http:\/\/www.cmd137blog.top\/?p=136"},"modified":"2024-04-01T17:50:25","modified_gmt":"2024-04-01T09:50:25","slug":"c%e8%af%ad%e8%a8%80%e5%9f%ba%e7%a1%80%e6%9c%9f%e6%9c%ab%e7%bb%bc%e5%90%88%e7%bb%83%e4%b9%a0-2","status":"publish","type":"post","link":"http:\/\/www.cmd137blog.top\/?p=136","title":{"rendered":"C\u8bed\u8a00\u57fa\u7840\u671f\u672b\u7efc\u5408\u7ec3\u4e60-2"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u9898\u76ee\uff1a<\/h1>\n\n\n\n<p>\u7f16\u7a0b\u89e3\u51b3\u5982\u4e0b\u95ee\u9898: \u6709\u4e00\u4e2a\u6570\u5b66\u7b49\u5f0f: ABCD*E= DCBA\uff0c\u5f0f\u4e2d\u7684\u4e00\u4e2a\u5b57\u6bcd\u4ee3\u8868\u4f4d\u6570\u5b57\uff0c\u8bd5\u627e\u51fa\u6240\u6709\u7b26\u5408\u4e0a\u8ff0\u8981\u6c42\u7684\u4e58\u79ef\u5f0f\u5e76\u6253\u5370\u8f93\u51fa\u3002\u6ce8\u610f:A\u3001B\u3001C\u3001D\u3001E\u4e0d\u80fd\u4e3a 0\u3002<br>(\u8f93\u5165) \u65e0\u3002<br>(\u8f93\u51fa) \u82e5\u5e72\u884c\u4e58\u79ef\u5f0f\uff0c\u4e00\u884c\u4e00\u4e2a\u4e58\u79ef\u5f0f\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u7b54\u6848\uff1a<\/h1>\n\n\n\n<pre class=\"wp-block-code\"><code>#include&lt;stdio.h&gt;\n\nint main(){\n    for(int i=1111;i&lt;=9999;i++){\n        int D=i%10;\n        int C=i\/10%10;\n        int B=i\/100%10;\n        int A=i\/1000%10;\n        if(A==0||B==0||C==0||D==0)\n            continue;\n        for(int E=1;E&lt;=9;E++){\n            if(i*E==(D*1000+C*100+B*10+A))\n                printf(\"%d*%d=%d\\n\",i,E,D*1000+C*100+B*10+A);\n        }       \n    }\n    return 0;\n}<\/code><\/pre>\n\n\n\n<p>\u6216<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;stdio.h&gt;\n\nstruct stu{\n\n};\nint main(){\n    int a,b,c,d,e;\n\/\/    int i;\n    for(a=1;a&lt;=9;a++){\n        for(b=1;b&lt;=9;b++){\n            for(c=1;c&lt;=9;c++){\n                for(d=1;d&lt;=9;d++){\n                    for(e=1;e&lt;=9;e++){\n                        if((a*1000+b*100+c*10+d)*e==d*1000+c*100+b*10+a){\n                            printf(\"%d%d%d%d*%d= %d%d%d%d\\n\",a,b,c,d,e,d,c,b,a);\n                        }\n                    }\n                }\n            }\n        }\n    }\n} <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9898\u76ee\uff1a \u7f16\u7a0b\u89e3\u51b3\u5982\u4e0b\u95ee\u9898: \u6709\u4e00\u4e2a\u6570\u5b66\u7b49\u5f0f: ABCD*E= DCBA\uff0c\u5f0f\u4e2d\u7684\u4e00\u4e2a\u5b57\u6bcd\u4ee3\u8868\u4f4d\u6570\u5b57\uff0c\u8bd5\u627e\u51fa\u6240\u6709\u7b26 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[22],"class_list":["post-136","post","type-post","status-publish","format-standard","hentry","category-5","tag-c"],"_links":{"self":[{"href":"http:\/\/www.cmd137blog.top\/index.php?rest_route=\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.cmd137blog.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.cmd137blog.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.cmd137blog.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.cmd137blog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=136"}],"version-history":[{"count":1,"href":"http:\/\/www.cmd137blog.top\/index.php?rest_route=\/wp\/v2\/posts\/136\/revisions"}],"predecessor-version":[{"id":137,"href":"http:\/\/www.cmd137blog.top\/index.php?rest_route=\/wp\/v2\/posts\/136\/revisions\/137"}],"wp:attachment":[{"href":"http:\/\/www.cmd137blog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.cmd137blog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.cmd137blog.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}