/**
* 水仙花数
* 水仙花数是 153 = 1*1*1+5*5*5+3*3*3
*/
public static void test1() {
int temp = 0;
for(int i=100;i<999;i++){
temp = i;
int x = temp/100; // 百位
int y = temp%100/10; // 十位数
int z = temp%10; // 个位数
if(i == x*x*x+y*y*y+z*z*z){
System.out.println(i);
}
}
}