Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98314 | 郝王骏程 | 回文字符串I | C++ | Wrong Answer | 0 MS | 280 KB | 354 | 2024-11-18 20:51:52 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() using namespace std; int main(){ char a[1001]; int s=0; cin>>a; while(a[s]!='\0'){ s++;} for(int i=0;i<s/2;i++){ if(a[i]!=a[s-1-i]){ cout<<"no"; return 0; } } cout<<"yes"; return 0; }
------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
yes