| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156963 | 王顺煜 | 回文字符串I | C++ | Wrong Answer | 1 MS | 280 KB | 281 | 2026-07-12 09:58:50 |
#include<bits/stdc++.h> using namespace std; int main() { string a; int max,cnt=0; cin>>a; // int la = a.size(); int i = 0; while(a[i]!='\0') { cnt++; } while(a[i]!='\0') { if(a[i]!=a[cnt-1-i]) { cout<<"No"; return 0; } } cout<<"Yes"; }
------Input------
ryajncnycmxwvcevkhjthqisteeynuihofasfnizppacecxtmocfoaxihatpizntytqhgbhunmrkdmfyryhexnvxfjglomudkjuh
------Answer-----
No
------Your output-----
Yes