Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
847 曾浩森 31回文字符串II C++ Wrong Answer 0 MS 264 KB 445 2023-04-22 15:29:13

Tests(1/10):


Code:

#include<iostream> #include<cstring> using namespace std; int main(){ int b,c=0,d=0;; string a; cin>>a; b=a.size(); for(int j=0;j<b;j++){ for(int i=0;i<b-j-2;i++){ if(a[j]==a[b-i-1]) c++; else break; } if(c>=1){ d++; } else{ d=0; } } if(d<2){ cout<<"No"; } else cout<<"Yes"; }


Run Info:

------Input------
pqwieurytalskdjfhgvbcnxmzpqwoeiurytfhdjghfgbcnxmz
------Answer-----
No
------Your output-----
Yes