| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 129645 | 任紫谦 | 回文字符串I | C++ | Wrong Answer | 1 MS | 276 KB | 308 | 2025-08-31 15:43:37 |
#include<iostream> using namespace std; int main(){ char s[1000]; int i,n=0,flag=1; cin>>s; while(s[n]!='\0') n++; for(i=0;i<=n/2;i++){ if(s[i]!=s[n-1-i]){ flag=0; break; } } if(flag) cout<<"yes"<<endl; else cout<<"no"<<endl; }
------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
yes