Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118393 | Kevin | 31回文字符串 | C++ | Wrong Answer | 1 MS | 276 KB | 278 | 2025-04-29 16:38:37 |
#include<iostream> #include<cstdio> using namespace std; int main(){ string s; getline(cin,s); int len=s.length(); for(int i=0,c=len-1;i<=len/2;i++,c--){ if(s[i]==s[c]) continue; else { cout<<"no"; return 0; } } cout<<"yes"; return 0; }
------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
yes