1. public class SXH {
    2. public static void main(String[] args) {
    3. // TODO Auto-generated method stub
    4. int i,a,b,c;
    5. for(i=100;i<=999;i++)
    6. {
    7. a=i/100;
    8. b=i/10%10;
    9. c=i%10;
    10. if(i==a*a*a+b*b*b+c*c*c)
    11. System.out.printf("%d\n",i);
    12. }
    13. }
    14. }