fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int i=100,a,b,c;
  6. while(i<=999)
  7. {
  8. a=i/100;
  9. b=i/10%10;
  10. c=i%10;
  11. if(a*a*a+b*b*b+c*c*c==i)
  12. {
  13. printf("%d",i);
  14. }
  15. i++;
  16. }
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
153370371407