| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 79858 | 刘昊炜 | 31回文字符串 | C++ | Wrong Answer | 0 MS | 276 KB | 236 | 2024-07-10 15:46:31 |
#include<iostream> #include<cstring> using namespace std; int main(){ char a[1000]; int n; cin >> a; n = strlen(a); for(int i=0;i<n;i++){ if(a[i] != a[n-i-1]){ cout << "NO"; return 1; } } cout << "YES"; }
------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
YES