Run ID:88318
提交时间:2024-08-19 10:46:33
#include<bits/stdc++.h> using namespace std; char c[1001]; int main(){ cin>>c; int n=strlen(c); 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; }