{"id":852,"date":"2022-03-23T17:44:42","date_gmt":"2022-03-23T09:44:42","guid":{"rendered":"https:\/\/www.eutaboo.com\/?p=852"},"modified":"2022-05-16T09:49:59","modified_gmt":"2022-05-16T01:49:59","slug":"c%e8%af%ad%e8%a8%80%e5%8f%a0%e7%ad%90%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/www.eutaboo.com\/index.php\/2022\/03\/23\/c%e8%af%ad%e8%a8%80%e5%8f%a0%e7%ad%90%e9%97%ae%e9%a2%98\/","title":{"rendered":"c\u8bed\u8a00\u53e0\u7b50\u95ee\u9898"},"content":{"rendered":"<h2>\u9898\u76ee\u63cf\u8ff0<\/h2>\n<p>\u628a\u4e00\u4e2a\u4e2a\u5927\u5c0f\u5dee\u4e00\u5708\u7684\u7b50\u53e0\u4e0a\u53bb\uff0c\u662f\u7684\u4ece\u4e0a\u5f80\u4e0b\u770b\u65f6\uff0c\u8fb9\u7b50\u82b1\u8272\u4ea4\u9519\u3002\u8fd9\u4e2a\u5de5\u4f5c\u73b0\u5728\u8981\u8ba9\u8ba1\u7b97\u673a\u6765\u5b8c\u6210\uff0c\u5f97\u770b\u4f60\u7684\u4e86\u3002<\/p>\n<h2>\u8f93\u5165\uff1a<\/h2>\n<p>\u8f93\u5165\u662f\u4e00\u4e2a\u4e2a\u4e09\u5143\u7ec4\uff0c\u5206\u522b\u662f\uff1a\u5916\u7b50\u5c3a\u5bf8n\uff08n\u4e3a\u6ee1\u8db30&lt;n&lt;80\u7684\u5947\u6574\u6570\uff09\uff0c\u4e2d\u5fc3\u82b1\u8272\u5b57\u7b26\uff0c\u5916\u7b50\u82b1\u8272\u5b57\u7b26\uff0c\u540e\u4e8c\u8005\u90fd\u4e3aASCII\u53ef\u89c1\u5b57\u7b26\u3002<\/p>\n<h2>\u8f93\u51fa\uff1a<\/h2>\n<p>\u8f93\u51fa\u53e0\u5728\u4e00\u8d77\u7684\u7b50\u56fe\u6848\uff0c\u4e2d\u5fc3\u82b1\u8272\u4e0e\u5916\u6846\u82b1\u8272\u5b57\u7b26\u4ece\u5185\u5c42\u8d77\u4ea4\u9519\u76f8\u53e0\uff0c\u591a\u7b50\u76f8\u53e0\u65f6\uff0c\u6700\u5916\u7b50\u7684\u89d2\u603b\u662f\u88ab\u6253\u78e8\u6389\u3002\u53e0\u7b50\u4e0e\u53e0\u7b50\u4e4b\u95f4\u5e94\u8be5\u6709\u4e00\u884c\u95f4\u9694\u3002<\/p>\n<h2>\u6837\u4f8b\u8f93\u5165\uff1a<\/h2>\n<p>11 B A<br \/>\n5 @ W<\/p>\n<h2>\u6837\u4f8b\u8f93\u51fa\uff1a<\/h2>\n<pre><code class=\"line-numbers\"> AAAAAAAAA \nABBBBBBBBBA\nABAAAAAAABA\nABABBBBBABA\nABABAAABABA\nABABABABABA\nABABAAABABA\nABABBBBBABA\nABAAAAAAABA\nABBBBBBBBBA\n AAAAAAAAA \n\n @@@ \n@WWW@\n@W@W@\n@WWW@\n @@@ \n<\/code><\/pre>\n<h2>\u4ee3\u7801\uff1a<\/h2>\n<pre><code class=\"language-c line-numbers\">#include &lt;stdio.h&gt;\n#include &lt;stdlib.h&gt;\n\nchar matrix[80][80];\nint main(){\n    int size;\n    char x;\n    char y;\n    int lt,rb;\n    int flag;\n    int firstcase = 1;\n    while(scanf(\"%d %c %c\",&amp;size,&amp;x,&amp;y) != EOF){\n        lt = 0;\n        rb = size-1;\n        flag = size;\n        if(flag\/2%2==0) flag = 1;\n        else flag = 0;\n        if(firstcase == 1){\n            firstcase = 0;\n        }else{\n            printf(\"\\n\");\n        }\n        for(int i = 0;i&lt;=size\/2;i++){\n            for(int j = lt;j&lt;size-i;j++){\n                if(flag%2 == 0){\n                    matrix[lt][j] = y;\n                    matrix[j][lt] = y;\n                    matrix[rb][j] = y;\n                    matrix[j][rb] = y;\n                }\n                else{\n                    matrix[lt][j] = x;\n                    matrix[j][lt] = x;\n                    matrix[rb][j] = x;\n                    matrix[j][rb] = x;\n                }\n            }\n            lt++;\n            rb--;\n            flag++;\n        }\n        matrix[0][0] = ' ';\n        matrix[0][size-1] = ' ';\n        matrix[size-1][0] = ' ';\n        matrix[size-1][size-1] = ' ';\n        for(int i = 0;i&lt;size;i++){\n            for(int j = 0;j&lt;size;j++){\n                printf(\"%c\",matrix[i][j]);\n            }\n            printf(\"\\n\");\n        }\n    }\n    return 0;\n}\n<\/code><\/pre>\n<h2>\u6d4b\u8bd5\uff1a<\/h2>\n<p>[img]https:\/\/vkceyugu.cdn.bspapp.com\/VKCEYUGU-df9040b6-66ef-461b-92a5-f74c4e71766f\/ae331033-3db4-4238-a14c-0d686627731c.png[\/img]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9898\u76ee\u63cf\u8ff0 \u628a\u4e00\u4e2a\u4e2a\u5927\u5c0f\u5dee\u4e00\u5708\u7684\u7b50\u53e0\u4e0a\u53bb\uff0c\u662f\u7684\u4ece\u4e0a\u5f80\u4e0b\u770b\u65f6\uff0c\u8fb9\u7b50\u82b1\u8272\u4ea4\u9519\u3002\u8fd9\u4e2a\u5de5\u4f5c\u73b0\u5728\u8981\u8ba9\u8ba1\u7b97\u673a\u6765\u5b8c\u6210\uff0c\u5f97\u770b\u4f60\u7684\u4e86\u3002 \u8f93\u5165\uff1a \u8f93\u5165\u662f &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[4,9],"tags":[60,81,63],"class_list":["post-852","post","type-post","status-publish","format-standard","hentry","category-4","category-9","tag-60","tag-81","tag-63"],"views":2143,"_links":{"self":[{"href":"https:\/\/www.eutaboo.com\/index.php\/wp-json\/wp\/v2\/posts\/852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.eutaboo.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.eutaboo.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.eutaboo.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.eutaboo.com\/index.php\/wp-json\/wp\/v2\/comments?post=852"}],"version-history":[{"count":4,"href":"https:\/\/www.eutaboo.com\/index.php\/wp-json\/wp\/v2\/posts\/852\/revisions"}],"predecessor-version":[{"id":854,"href":"https:\/\/www.eutaboo.com\/index.php\/wp-json\/wp\/v2\/posts\/852\/revisions\/854"}],"wp:attachment":[{"href":"https:\/\/www.eutaboo.com\/index.php\/wp-json\/wp\/v2\/media?parent=852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.eutaboo.com\/index.php\/wp-json\/wp\/v2\/categories?post=852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.eutaboo.com\/index.php\/wp-json\/wp\/v2\/tags?post=852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}