for(int i = 1000;i < 10000;i++){
int h2 = i / 1000;
int h3 = (i - h2*1000)/100;
int h4 = (i % 100)/10;
int h5 = i % 10;
if(i == h2*h2*h2 + h3*h3*h3 + h5*h5*h5 + h4*h4*h4 ){
System.out.println(i);
}
}
泼墨化龙
相关分类