Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102212 | 叶城俊 | 回文字符串I | C++ | Wrong Answer | 1 MS | 280 KB | 306 | 2024-12-21 13:24:46 |
#include<iostream> using namespace std; int main (){ char a[1001]; bool falg=true; int b; cin>>a>>b; for(int i=0;i<b/2;i++){ if(a[i]!=a[b-1-i]){ falg=false; } } if(falg){ cout<<"Yes"; } else cout<<"No"; return 0; }
------Input------
ryajncnycmxwvcevkhjthqisteeynuihofasfnizppacecxtmocfoaxihatpizntytqhgbhunmrkdmfyryhexnvxfjglomudkjuh
------Answer-----
No
------Your output-----
Yes