| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82449 | 黄睿杰 | 回文数 | C++ | Wrong Answer | 0 MS | 260 KB | 265 | 2024-07-13 11:22:13 |
#include<bits/stdc++.h> using namespace std; char a[10000]; int main(){ gets(a); int l=strlen(a),s; 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; }
------Input------
4503
------Answer-----
NO
------Your output-----
YES