{"id":1113,"date":"2022-05-17T20:42:27","date_gmt":"2022-05-17T12:42:27","guid":{"rendered":"https:\/\/sanlangcode.com\/?p=1113"},"modified":"2022-05-17T20:42:27","modified_gmt":"2022-05-17T12:42:27","slug":"%e5%8d%8e%e4%b8%ba%e6%9c%ba%e8%af%95hj14%e5%ad%97%e7%ac%a6%e4%b8%b2%e6%8e%92%e5%ba%8f%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/sanlangcode.com\/index.php\/2022\/05\/17\/%e5%8d%8e%e4%b8%ba%e6%9c%ba%e8%af%95hj14%e5%ad%97%e7%ac%a6%e4%b8%b2%e6%8e%92%e5%ba%8f%e9%97%ae%e9%a2%98\/","title":{"rendered":"\u534e\u4e3a\u673a\u8bd5HJ14\u5b57\u7b26\u4e32\u6392\u5e8f\u95ee\u9898"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>package HuaWei;\nimport java.util.Arrays;\nimport java.util.Scanner;\n\n\/*\nAuthor:Sanro\nTime:2022.05.14 16:22:50\nBlog:https:\/\/sanlangcode.com\nEmail:sanlangcode@163.com\nDesc:\n\u63cf\u8ff0\n\u7ed9\u5b9a n \u4e2a\u5b57\u7b26\u4e32\uff0c\u8bf7\u5bf9 n \u4e2a\u5b57\u7b26\u4e32\u6309\u7167\u5b57\u5178\u5e8f\u6392\u5217\u3002\n\n\u6570\u636e\u8303\u56f4\uff1a 1 \\le n \\le 1000 \\1\u2264n\u22641000  \uff0c\u5b57\u7b26\u4e32\u957f\u5ea6\u6ee1\u8db3 1 \\le len \\le 100 \\1\u2264len\u2264100\n\u8f93\u5165\u63cf\u8ff0\uff1a\n\u8f93\u5165\u7b2c\u4e00\u884c\u4e3a\u4e00\u4e2a\u6b63\u6574\u6570n(1\u2264n\u22641000),\u4e0b\u9762n\u884c\u4e3an\u4e2a\u5b57\u7b26\u4e32(\u5b57\u7b26\u4e32\u957f\u5ea6\u2264100),\u5b57\u7b26\u4e32\u4e2d\u53ea\u542b\u6709\u5927\u5c0f\u5199\u5b57\u6bcd\u3002\n\u8f93\u51fa\u63cf\u8ff0\uff1a\n\u6570\u636e\u8f93\u51fan\u884c\uff0c\u8f93\u51fa\u7ed3\u679c\u4e3a\u6309\u7167\u5b57\u5178\u5e8f\u6392\u5217\u7684\u5b57\u7b26\u4e32\u3002\n\u793a\u4f8b1\n\u8f93\u5165\uff1a\n9\ncap\nto\ncat\ncard\ntwo\ntoo\nup\nboat\nboot\n\n\u8f93\u51fa\uff1a\nboat\nboot\ncap\ncard\ncat\nto\ntoo\ntwo\nup\n\n*\/\npublic class HJ14\u5b57\u7b26\u4e32\u6392\u5e8f {\n    public static void main(String&#91;] args) {\n        Scanner sc = new Scanner(System.in);\n        int n = sc.nextInt();\n        String&#91;] strs = new String&#91;n];\n        for (int i = 0; i &lt; n; i++) {\n            \/\/strs&#91;i] = sc.nextLine();\n            \/\/\u8fd9\u662f\u56e0\u4e3a\u4e4b\u524d\u8f93\u5165\u4e00\u4e2anextInt\u540e\uff0c\u8f93\u5165\u7684\u56de\u8f66\u4f1a\u88abnextLine\u7ed9\u63a5\u53d7\n            \/\/\u6240\u4ee5\u6392\u5e8f\u4f1a\u5c11\u6700\u540e\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u3002\n            \/\/\u66f4\u6539\u65b9\u6848\uff1a\u53ef\u4ee5\u5c06nextLine\u6539\u4e3anext\uff0c\u540e\u8005\u4e0d\u63a5\u53d7\u7a7a\u683c\u56de\u8f66\uff1a\n            strs&#91;i] = sc.next();\n        }\n        Arrays.sort(strs);\n        for (String s : strs) {\n            System.out.println(s);\n        }\n    }\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":1114,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4],"tags":[],"class_list":["post-1113","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","category-4"],"_links":{"self":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/1113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/comments?post=1113"}],"version-history":[{"count":0,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/1113\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media\/1114"}],"wp:attachment":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media?parent=1113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/categories?post=1113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/tags?post=1113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}