| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150359 | 翁思宸 | 31回文字符串II | C++ | Accepted | 64 MS | 272 KB | 571 | 2026-03-27 18:51:03 |
//1415 31回文字符串II #include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ string n; int a,l,s,f=1; cin>>n; l=n.length(); for(int i=0;i<l-2;i++){ for(int j=l-1;j>i+1;j--){ f=1; for(int k=0;k<(j-i)/2+1;k++){ if(n[i+k]!=n[j-k]){ f=0; } } if(f){ cout<<"Yes"; return 0; } } } cout<<"No"; return 0; }