#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; }
By signing up a 羽润编程 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 羽润编程 universal account