标签:
public class Shuixianhua1{
public static void main(String[] args){
for(int a=100;a<=999;a++){
int x,y,z;
x=a/100;y=a/10-x*10;z=a-x*100-y*10;
if(x*x*x+y*y*y+z*z*z==a)
System.out.println(a);
}
}
}
标签:
原文地址:http://www.cnblogs.com/hell/p/5254284.html