Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
92934 | 石水生 | 回文数 | C++ | Accepted | 1 MS | 272 KB | 212 | 2024-10-07 10:03:47 |
#include <bits/stdc++.h> using namespace std; int main() { int n,m,x=0; cin>>n; m=n; for(int i=1;; i++) { x=x*10+m%10; m/=10; if(m==0) break; } if(x==n) cout<<"YES"; else cout<<"NO"; }