Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
77743 邓嘉瑶 回文字符串I C++ Wrong Answer 1 MS 264 KB 247 2024-06-15 11:41:36

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char a[1000]; scanf("%s", a); int len=strlen(a); for(int i=len-1,j=0;i>=0,j<len;i--,j++){ if(a[i]!=a[j]){ cout<<"NO"; return 0; } } cout<<"YES"; return 0; }


Run Info:

------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
YES