| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82452 | 黄睿杰 | 回文数 | C++ | Accepted | 1 MS | 264 KB | 273 | 2024-07-13 11:26:11 |
#include<bits/stdc++.h> using namespace std; char a[10000]; int main(){ gets(a); int s=1; int l=strlen(a); for(int i=0,j=l-1;i<l,j>=0;i++,j--){ if(a[i]==a[j]) s=1; else{ s=0; break; } } if(s==1) cout<<"YES"; else cout<<"NO"; return 0; }