public class Test02 {
public static void main(String[] args) {
for (int i = 100; i < 1000; i++) {
//对 个位十位百位 取数字
int bai = i/100%10;
int shi = i/10%10;
int ge = i%10;
//计算
if (i == bai*bai*bai + shi*shi*shi + ge*ge*ge) {
System.out.println(i);
}
}
}
}