#做题笔记,仅自己看得懂
题目:
正确解题姿势:
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
for (Integer i = 100; i <= 999; i++) {
if (i==Math.pow(Integer.parseInt(i.toString().charAt(0)+""),3)
+Math.pow(Integer.parseInt(i.toString().charAt(1)+""),3)
+Math.pow(Integer.parseInt(i.toString().charAt(2)+""),3)) {
System.out.println(i);
}
}
}}