Run ID:77771

提交时间:2024-06-15 12:12:06

#include<bits/stdc++.h> using namespace std; int main(){ char s[1001]; scanf("%s",s); int len=strlen(s); int i=0,j=len-1; while(i<=j){ if(s[i]==s[j]){ i++; j--; }else{ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }