提交时间:2024-03-29 15:14:39

运行 ID: 44180

#include<bits/stdc++.h> using namespace std; int main() { char s[100]; gets(s); int i=0; int j=strlen(s)-1; while((i<j)&&(s[i]==s[j])) { i++; j--; } if(i>=j) { cout<<"yes"; } else { cout<<"no"; } return 0; }