Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
77813 杨一诺 回文字符串I C++ Wrong Answer 1 MS 268 KB 355 2024-06-15 14:51:41

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; char a[1002],b[1002]; int c=0,d=0; int main() { cin>>a; for(int i=0;i<=1001;i++){ if(a[i]=='\0'){ break; } c++; } for(int i=0;i<c;i++){ if(a[i]==a[c-i-1]){ d=1; } else{ d=0; break; } } if(d==1){ cout<<"yes"; } else{ cout<<"No"; } return 0; }


Run Info:

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