{"id":65060,"date":"2025-05-03T15:53:54","date_gmt":"2025-05-03T07:53:54","guid":{"rendered":"https:\/\/fwq.ai\/blog\/65060\/"},"modified":"2025-05-03T15:53:54","modified_gmt":"2025-05-03T07:53:54","slug":"%e6%b0%b4%e4%bb%99%e6%95%b0%e5%88%a4%e6%96%ad%e9%97%ae%e9%a2%98%ef%bc%9a%e4%b8%ba%e4%bb%80%e4%b9%88%e4%bb%a3%e7%a0%81%e4%bc%9a%e9%99%b7%e5%85%a5%e6%ad%bb%e5%be%aa%e7%8e%af%ef%bc%9f-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/65060\/","title":{"rendered":"\u6c34\u4ed9\u6570\u5224\u65ad\u95ee\u9898\uff1a\u4e3a\u4ec0\u4e48\u4ee3\u7801\u4f1a\u9677\u5165\u6b7b\u5faa\u73af\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173107368341834.jpg\" class=\"aligncenter\" title=\"\u6c34\u4ed9\u6570\u5224\u65ad\u95ee\u9898\uff1a\u4e3a\u4ec0\u4e48\u4ee3\u7801\u4f1a\u9677\u5165\u6b7b\u5faa\u73af\uff1f\u63d2\u56fe\" alt=\"\u6c34\u4ed9\u6570\u5224\u65ad\u95ee\u9898\uff1a\u4e3a\u4ec0\u4e48\u4ee3\u7801\u4f1a\u9677\u5165\u6b7b\u5faa\u73af\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u6c34\u4ed9\u6570\u95ee\u9898\u7684\u5e38\u89c1\u56f0\u96be<\/strong><\/p>\n<p>\u60a8\u63d0\u4f9b\u7684\u6c42\u6c34\u4ed9\u6570\u7684 java \u4ee3\u7801\u4e2d\u5b58\u5728\u4ee5\u4e0b\u95ee\u9898\uff1a<\/p>\n<p><strong>\u5224\u65ad\u9519\u8bef<\/strong><\/p>\n<p>\u4ee3\u7801\u4e2d\u5c06\u5224\u65ad\u8bed\u53e5 is \u653e\u7f6e\u5728 is() \u65b9\u6cd5\u4e2d\uff0c\u5bfc\u81f4\u5728\u5224\u65ad\u8fc7\u7a0b\u4e2d\u91cd\u65b0\u8c03\u7528 reader.nextint()\uff0c\u963b\u585e\u4e86\u7a0b\u5e8f\u3002\u8fd9\u6837\u4ee3\u7801\u4e2d\u6c38\u8fdc\u4e0d\u80fd\u7ee7\u7eed\u6267\u884c\u3002<\/p>\n<p><strong>\u4fee\u6539\u540e\u4ee3\u7801<\/strong><\/p>\n<p>\u60a8\u63d0\u4f9b\u7684\u4ee3\u7801\uff0c\u7ecf\u4fee\u6539\u540e\u5982\u4e0b\uff1a<\/p>\n<pre>public class c1t3 {\n    public static Integer shuru() {\n        Scanner reader = new Scanner(System.in);\n        System.out.println(\"123\");\n        int date = reader.nextInt();\n        return date;\n    }\n\n    public static void main(String[] args){\n        System.out.println(\"\u8bf7\u8f93\u5165\u4e00\u4e2a\u4e09\u4f4d\u6570\u7684\u6574\u6570\");\n        String a= shuru().toString();\n        String[]b=a.split(\"\");\n        int[] math=new int[b.length];\n\n        for(int i=0;i&lt;b.length; i++) {\n            math[i] = Integer.parseInt(b[i]);\n        }\n        if (is(math[0], math[1], math[2], Integer.parseInt(a))) {\n            System.out.println(\"\u8fd9\u4e2a\u6570\u662f\u6c34\u4ed9\u6570\");\n        } else {\n            System.out.println(\"\u8fd9\u4e2a\u4e0d\u662f\u6c34\u4ed9\u6570\");\n        }\n    }\n\n    public static boolean is(int a,int b,int c, int num){\n        return(a*a*a)+(b*b*b)+(c*c*c)== num;\n    }\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u4fee\u6539\u5185\u5bb9<\/strong><\/p>\n<ul>\n<li>\u5c06\u5224\u65ad\u8bed\u53e5\u4ece is() \u65b9\u6cd5\u4e2d\u79fb\u51fa\uff0c\u76f4\u63a5\u5199\u5728 mn() \u65b9\u6cd5\u4e2d\u3002<\/li>\n<li>\u5c06 shuru() \u65b9\u6cd5\u4e2d\u7684\u8f93\u5165\u8f93\u51fa\u8bed\u53e5\u4fee\u6539\u4e3a system.out.println(&#8220;123&#8221;);\uff0c\u907f\u514d\u5728\u5224\u65ad\u8fc7\u7a0b\u4e2d\u963b\u585e\u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u6c34\u4ed9\u6570\u5224\u65ad\u95ee\u9898\uff1a\u4ee3\u7801\u4f1a\u9677\u5165\u6b7b\u5faa\u73af\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8IDCBABY\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6c34\u4ed9\u6570\u95ee\u9898\u7684\u5e38\u89c1\u56f0\u96be \u60a8\u63d0\u4f9b\u7684\u6c42\u6c34\u4ed9\u6570\u7684 java \u4ee3\u7801\u4e2d\u5b58\u5728\u4ee5\u4e0b\u95ee\u9898\uff1a \u5224\u65ad\u9519\u8bef \u4ee3\u7801\u4e2d\u5c06\u5224\u65ad\u8bed\u53e5 is \u653e\u7f6e\u5728 is() \u65b9\u6cd5\u4e2d\uff0c\u5bfc\u81f4\u5728\u5224\u65ad\u8fc7\u7a0b\u4e2d\u91cd\u65b0\u8c03\u7528 reader.nextint()\uff0c\u963b\u585e\u4e86\u7a0b\u5e8f\u3002\u8fd9\u6837\u4ee3\u7801\u4e2d\u6c38\u8fdc\u4e0d\u80fd\u7ee7\u7eed\u6267\u884c\u3002 \u4fee\u6539\u540e\u4ee3\u7801 \u60a8\u63d0\u4f9b\u7684\u4ee3\u7801\uff0c\u7ecf\u4fee\u6539\u540e\u5982\u4e0b\uff1a public class c1t3 { public static Integer shuru() { Scanner reader = new Scanner(System.in); System.out.println(&#8220;123&#8221;); int date = reader.nextInt(); return date; } public static void main(String[] args){ System.out.println(&#8220;\u8bf7\u8f93\u5165\u4e00\u4e2a\u4e09\u4f4d\u6570\u7684\u6574\u6570&#8221;); String a= shuru().toString(); String[]b=a.split(&#8220;&#8221;); int[] math=new int[b.length]; for(int i=0;i&lt;b.length; i++) { math[i] = Integer.parseInt(b[i]); [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-65060","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/65060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=65060"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/65060\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=65060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=65060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=65060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}