Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129547 周李言 回文字符串I C++ Wrong Answer 1 MS 272 KB 288 2025-08-28 10:54:08

Tests(0/10):


Code:

#include<iostream> #include<cstring> using namespace std; int main() { char a[1005]; cin>>a; int len=strlen(a); for(int i=0,j=len-1;i<len,j>=0;i++,j--) { if(a[i]==a[j]) { } else { cout<<"no"; return 0; } } cout<<"yes"; return 0; }


Run Info:

------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
yes