Run ID:82449

提交时间:2024-07-13 11:22:13

#include<bits/stdc++.h> using namespace std; char a[10000]; int main(){ gets(a); int l=strlen(a),s; 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; }