Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157509 汪明轩 31回文字符串 C++ Wrong Answer 1 MS 276 KB 290 2026-07-25 10:16:45

Tests(0/10):


Code:

#include<iostream> #include<cstring> using namespace std; int main(){ char a[1005]; cin>>a; int len=strlen(a); int flag=1; for(int i=0;i<len;i++){ if(a[i]==a[len-i-1]){ continue; } else{ flag=0; break; } } if(flag) cout<<"YES"; else cout<<"No"; }


Run Info:

------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
YES