Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102208 | 叶城俊 | 回文字符串I | C++ | Wrong Answer | 1 MS | 272 KB | 310 | 2024-12-21 13:15:45 |
#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]!=b-1-i){ falg=false; } } if(falg=true){ cout<<"yes"; } else cout<<"no"; return 0; }
------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
yes