Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2527 | 林子杰 | 回文数 | C++ | Accepted | 0 MS | 268 KB | 256 | 2024-01-07 11:17:38 |
#include <iostream> using namespace std; int main(){ int x=0,y,a; cin>>a; y=a; while(a!=0){ x=x*10+a%10; a=a/10; } if(y==x) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }