Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
150437 陈骏睿 31回文字符串 C++ Wrong Answer 1 MS 272 KB 486 2026-03-28 10:47:42

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(){ string a; int l; cin>>a; l=a.size(); for(int i=1;i<=l/2;i++){ if(a[i]==a[l-i-1]){ cout<<'Yes'<<endl; break; }else{ cout<<'No'<<endl; break; } } return 0; }


Run Info:

------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
5858675