Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
127724 唐诗阳 回文字符串I C++ Wrong Answer 1 MS 276 KB 513 2025-07-28 20:22:26

Tests(0/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; int main(){ char a[1001]; cin>>a; int s1=0,x; for(int i=0;a[i]!='\0';i++) s1++; x=s1; for(int i=0;i<=s1/2;i++){ if(a[i]!=x){ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }


Run Info:

------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
No