Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81718 尚雨钒 回文字符串I C++ Wrong Answer 1 MS 272 KB 255 2024-07-12 15:16:54

Tests(0/10):


Code:

#include <iostream> #include <cstring> using namespace std; int main() { char a[1000]; int a_1; cin>>a; a_1=strlen(a); for(int i=0; i<=a_1/2; i++) { if(a[i]!=a[a_1-i]) { cout<<"No"; return 0; } cout<<"Yes"; } return 0; }


Run Info:

------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
No