| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160614 | Kevin | 【字符串】回文串 | C++ | Accepted | 1 MS | 276 KB | 299 | 2026-09-24 19:21:50 |
#include<bits/stdc++.h> using namespace std; int main() { char a[260]; cin>>a; int len=strlen(a); bool flag=true; for(int i=0,j=len-1;i<len,j>=0;i++,j--){ if(a[i]==a[j]){ continue; } else{ flag=false; } } if(flag) cout<<"YES"; else cout<<"NO"; return 0; }