8 solutions

  • -1
    @ 2026-2-4 11:09:21

    #include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int t=n; int y=0; while(n!=0) { int ge=n%10; y*=10; y+=ge; n/=10; } if(y==t) { cout<<"YES"; } else { cout<<"NO"; } return 0; }

    Information

    ID
    50
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    320
    Accepted
    90
    Uploaded By