Run ID:149652

提交时间:2026-03-15 15:23:31

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ string s; cin>>s; int n,x,t; n=s.length(); for(int i=1;i<=n;i++){ for(int j=i+3;j<=n;j++){ t=1; for(int k=0;k<j;k++){ if(s[i+k]!=s[j-k]){ t=0; break; } } if(t==1){ cout<<"Yes"; return 0; } } } cout<<"No"; return 0; }