Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
124784 | 李昊宇 | 回文字符串I | C++ | Wrong Answer | 0 MS | 276 KB | 238 | 2025-07-12 15:44:48 |
#include<bits/stdc++.h> using namespace std; int main() { char a[1100]; cin>>a; int lena = strlen(a); for(int i=0; i<lena/2; i++) { if(a[i] != a[lena-1-i]){ cout<<"NO"; return 0; } } cout<<"YES"; return 0; }
------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
YES