Run ID:82452
提交时间:2024-07-13 11:26:11
#include<bits/stdc++.h> using namespace std; char a[10000]; int main(){ gets(a); int s=1; int l=strlen(a); for(int i=0,j=l-1;i<l,j>=0;i++,j--){ if(a[i]==a[j]) s=1; else{ s=0; break; } } if(s==1) cout<<"YES"; else cout<<"NO"; return 0; }