| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151108 | 唐诗阳 | 31回文字符串 | C++ | Wrong Answer | 1 MS | 272 KB | 512 | 2026-04-05 15:10:35 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ string s; cin>>s; int n=s.length(),y=n; for(int i=0;i<=n/2;i++){ cout<<y<<n<<' '<<s[i]<<endl; if(s[i]!=s[y]){ cout<<"No"; return 0; } y--; } cout<<"Yes"; return 0; }
------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
100100 l No