{"id":33,"date":"2025-12-23T09:03:24","date_gmt":"2025-12-23T01:03:24","guid":{"rendered":"https:\/\/www.yun-games.com\/?p=33"},"modified":"2025-12-23T09:03:29","modified_gmt":"2025-12-23T01:03:29","slug":"%e9%97%ae%e9%a2%98-h-%e5%88%a0%e9%99%a4%e9%87%8d%e5%a4%8d%e5%ad%97%e7%ac%a6","status":"publish","type":"post","link":"https:\/\/www.yun-games.com\/?p=33","title":{"rendered":"\u95ee\u9898 H: \u5220\u9664\u91cd\u590d\u5b57\u7b26"},"content":{"rendered":"\n<p><a href=\"http:\/\/acm.hnust.edu.cn\/problem.php?cid=3648&amp;pid=7\">OJ<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.yun-games.com\/wp-content\/uploads\/2025\/12\/image.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"863\" data-original=\"https:\/\/www.yun-games.com\/wp-content\/uploads\/2025\/12\/image.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-34\"  sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/div><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;stdio.h>\n#include &lt;string.h>\nvoid scan(char c,char *b ){\n    int flag =1;\\\n    static int k =0;\n    for(int i=0;i&lt;=k;i++){\n        if(*(b+i)==c){\n            flag =0;\n            break;\n        }\n    }\n    if(flag){\n        *(b + k) = c;\n        k++;\n    }\n    \n    *(b+k+1)='\\0';\n}\nvoid sort(char *b ){\n    char temp='0';\n    size_t len=strlen(b);\n    for(int i=0;i&lt;len-1;i++){\n        for(int k=0;k&lt;len-1;k++){\n            if(*(b+k)>*(b+k+1)){\n                temp = *(b+k);\n                *(b+k) = *(b+k+1);\n                *(b+k+1) = temp;\n            }\n        }\n    }\n}\n\nint main(void){\n    char a&#91;80],b&#91;80]={0};\n    b&#91;0]=a&#91;0];\n    if(fgets(a,sizeof(a),stdin)!=NULL){\n        size_t len = strlen(a);\n        a&#91;len-1]='\\0';\n    };\n    for(int i=0;i&lt;strlen(a);i++){\n        scan(a&#91;i],b);\n    }\n    sort(b);\n    printf(\"%s\\n\",b);\n\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>OJ<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.yun-games.com\/index.php?rest_route=\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yun-games.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yun-games.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yun-games.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yun-games.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=33"}],"version-history":[{"count":1,"href":"https:\/\/www.yun-games.com\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":35,"href":"https:\/\/www.yun-games.com\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions\/35"}],"wp:attachment":[{"href":"https:\/\/www.yun-games.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yun-games.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yun-games.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}