5 solutions

  • 0
    @ 2024-10-28 17:10:52

    #include <stdio.h> void w(int a) { int n=3; int sum=0; int t=a; while(n>=0){ sum=sum*10+t%10; t=t/10; n--; } if(a==sum){ printf("%d\n",sum); } } int main() { int m; for(m=1000;m<=9999;m++){ w(m); } return 0; }

    Information

    ID
    32
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    4
    Tags
    # Submissions
    404
    Accepted
    177
    Uploaded By