提交时间:2024-03-29 16:06:22
运行 ID: 44274
#include<bits/stdc++.h> using namespace std; int main() { char a[100]; gets(a); int i=0,j=strlen(a)-1; while((i<j)&&(a[i]==a[j])){ i++; j--; } if(i>=j) cout<<"yes"<<endl; else cout<<"no"<<endl; return 0; }