Run ID:88462

提交时间:2024-08-19 10:49:06

#include<bits/stdc++.h> using namespace std; int main(){ char s[1000]; cin >>s; int n=strlen(s); int l=0,r=n-1; while(l<=r){ if(s[l]==s[r]){ l++; r--; }else{ cout <<"No"; return 0; } } cout <<"Yes"; return 0; }