5 solutions

  • 1
    @ 2022-3-15 15:24:53

    #include<stdio.h> #include<math.h> int main() { int x,y,z,A,B; scanf("%d",&A); x=A/100; y=A%100/10; z=A%100%10; B=pow(x,3)+pow(y,3)+pow(z,3); if(A==B) printf("TRUE"); else printf("FALSE"); return 0; }

    Information

    ID
    42
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    5
    Tags
    # Submissions
    883
    Accepted
    310
    Uploaded By