Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149652 唐诗阳 31回文字符串II C++ Wrong Answer 1 MS 272 KB 699 2026-03-15 15:23:31

Tests(0/10):


Code:

#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; }


Run Info:

------Input------
oaksjdhfgvbcnxmzkjndbbdnjk
------Answer-----
Yes
------Your output-----
No