Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157514 丁昭臣 回文字符串I C++ Wrong Answer 1 MS 280 KB 296 2026-07-25 10:24:18

Tests(0/10):


Code:

#include<iostream> #include<cstring> using namespace std; int main(){ char a[1009]; 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