Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149656 冯诚阳 31回文字符串II C++ Wrong Answer 1 MS 276 KB 693 2026-03-15 15:50:27

Tests(5/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; string a; bool f(int x,int y){ int c=(y-x)/2+1; int j=0; for(int i=x;i<=c;i++){ cout<<a[i]<<" "<<a[y-j]<<endl; if(a[i]!=a[y-j]) return 0; j++; } return 1; } int main(){ cin>>a; for(int i=0;i<a.size()-1;i++){ for(int j=a.size()-1;j>i;j--){ if(f){ cout<<"Yes";return 0; } } } cout<<"No"; return 0; }


Run Info:

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