Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
846 | 曾浩森 | 31回文字符串II | C++ | Wrong Answer | 0 MS | 264 KB | 410 | 2023-04-22 15:25:59 |
#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){ cout<<"Yes"; d=1; break; } } if(d!=1){ cout<<"No"; } }
------Input------
pqwieurytalskdjfhgvbcnxmzpqwoeiurytfhdjghfgbcnxmz
------Answer-----
No
------Your output-----
Yes