#39340: C++解答


Ghost543 (The Ghost)


#include<iostream>
#include<cstring>
using namespace std;

int main(){
    char c[1001];
    cin>>c;
    int a=strlen(c);
    for(int b=0 ; b<a/2 ; b++){
        if(c[b]!=c[a-b-1]){
            cout<<"no";
            return 0;
        }
    }
    cout<<"yes";
}