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

Tests(8/10):


Code:

//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=i;k<(j+1)/2;k++){ if(n[i+k]!=n[j-k]){ f=0; } } if(f){ cout<<"Yes"; return 0; } } } cout<<"No"; return 0; }


Run Info:

------Input------
qwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwerty
------Answer-----
No
------Your output-----
Yes