Run ID:62093
提交时间:2023-12-17 11:45:54
#include<bits/stdc++.h> using namespace std; int main(){ char s[1001]; cin>>s; int n=strlen(s); int i=0,j=n-1; while(i<=j){ if(s[i]==s[j]){ i++; j--; }else{ cout<<"no"; return 0; } } cout<<"yes"; return 0; }