1 solutions

  • 0
    @ 2025-1-16 19:05:10
    #include <bits/stdc++.h>
    using namespace std;
    
    int main()
    {
        char a[105];
        cin>>a;
        for(int i=0,j=strlen(a)-2; i<j; i++,j--){
            if(a[i]!=a[j]){
                cout<<"no";
                return 0;
            }
        }
        cout<<"yes";
        return 0;
    }
    
    
    
    • 1

    Information

    ID
    815
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    8
    Tags
    # Submissions
    113
    Accepted
    28
    Uploaded By