{"id":1452,"date":"2026-05-11T20:34:37","date_gmt":"2026-05-11T12:34:37","guid":{"rendered":"http:\/\/wordpress.fangt.online\/?p=1452"},"modified":"2026-05-11T20:34:37","modified_gmt":"2026-05-11T12:34:37","slug":"gesp2306%e4%b8%89%e7%ba%a7-%e5%af%86%e7%a0%81%e5%90%88%e8%a7%84%e6%a3%80%e6%b5%8b","status":"publish","type":"post","link":"http:\/\/wordpress.fangt.online\/index.php\/2026\/05\/11\/gesp2306%e4%b8%89%e7%ba%a7-%e5%af%86%e7%a0%81%e5%90%88%e8%a7%84%e6%a3%80%e6%b5%8b\/","title":{"rendered":"[GESP2306\u4e09\u7ea7] \u5bc6\u7801\u5408\u89c4\u68c0\u6d4b"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u5b57\u7b26\u4e32\u64cd\u4f5c<\/p>\n<\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;iostream>\nusing namespace std;\nint main()\n{\n    string s;\n    cin >> s;\n    s += ',';\n    for (int i = 0, j = 0; i &lt; s.size(); i++)\n    {\n        if (s&#91;i] == ',')\n        {\n            string str = s.substr(j, i - j);\n            j = i + 1;\n            bool a = false, b = false, c = false, d = false, e = false;\n            for (int p = 0; p &lt; str.size(); p++)\n            {\n                if (string(\"!@#$\").find(str&#91;p]) != string::npos)\n                    b = true;\n                else if (str&#91;p] >= '0' &amp;&amp; str&#91;p] &lt;= '9')\n                    c = true;\n                else if (str&#91;p] >= 'a' &amp;&amp; str&#91;p] &lt;= 'z')\n                    d = true;\n                else if (str&#91;p] >= 'A' &amp;&amp; str&#91;p] &lt;= 'Z')\n                    e = true;\n                else\n                    a = true;\n            }\n            if (c + d + e &lt; 2 || !b || a || str.size() &lt; 6 || str.size() > 12)\n                continue;\n            cout &lt;&lt; str &lt;&lt; endl;\n        }\n    }\n    return 0;\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5b57\u7b26\u4e32\u64cd\u4f5c<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58],"tags":[],"class_list":["post-1452","post","type-post","status-publish","format-standard","hentry","category-st"],"_links":{"self":[{"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/posts\/1452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/comments?post=1452"}],"version-history":[{"count":1,"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/posts\/1452\/revisions"}],"predecessor-version":[{"id":1453,"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/posts\/1452\/revisions\/1453"}],"wp:attachment":[{"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/media?parent=1452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/categories?post=1452"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wordpress.fangt.online\/index.php\/wp-json\/wp\/v2\/tags?post=1452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}