| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156869 | 杜禹轩 | 回文字符串I | C++ | Wrong Answer | 0 MS | 280 KB | 250 | 2026-07-11 12:15:41 |
#include<bits/stdc++.h> using namespace std; int main() { int s=0; string a; cin>>a; while(a[s]!='\0'){ s++; } for(int i=0;i<=s;i++){ if(a[i]!=a[s-i]){ cout<<"NO"; return 0; } } cout<<"YSE"; return 0; }
------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
NO