fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a=0,b,c,d,sum;
  6. scanf("%d",&a);
  7. b=a/100;
  8. c=a/10%10;
  9. d=a%10;
  10. if(sum=b*b*b+c*c*c+d*d*d)
  11. printf("yes");
  12. else
  13. printf("no");
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5320KB
stdin
153
stdout
yes