Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
150347 翁思宸 31回文字符串II C++ Wrong Answer 1 MS 280 KB 488 2026-03-27 18:35:36

Tests(5/10):


Code:

//1415 31回文字符串II #include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ string n; int a,l,s; cin>>n; l=n.length(); for(int i=0;i<l;i++){ for(int j=l-2;j<l;j++){ for(int k=i;k<(j+1)/2;k++){ if(n[i+k]==n[j-k]){ cout<<"Yes"; return 0; } } } } cout<<"No"; return 0; }


Run Info:

------Input------
aa
------Answer-----
No
------Your output-----
Yes