Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
150279 李亭绪 回文字符串I C++ Wrong Answer 1 MS 272 KB 527 2026-03-25 19:17:17

Tests(0/10):


Code:

#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(){ int s; char a[1001]; cin>>a; for(int i=0;i<=1000;i++){ if (a[-i+1]==a[i]) s=1; else s=0; break; } if(s!=1){ cout<<"yes"; } else cout<<"no"; return 0; }


Run Info:

------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
yes