解题思路:
注意事项:
参考代码:
import java.util.*; import java.math.*; public class Main{ @SuppressWarnings("resource") public static void main(String[] args){ Scanner sc=new Scanner(System.in); int num=sc.nextInt(); int x=num/100; int y=num%10; int z=num/10%10; if(x*x*x+y*y*y+z*z*z==num){ System.out.println("YES"); } else{ System.out.println("NO"); } } }
0.0分
1 人评分