Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118185 | 晏莞煜 | 回文数 | C++ | Accepted | 1 MS | 272 KB | 209 | 2025-04-26 10:30:36 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,q=0,w; cin>>n; w=n; while(w!=0){ q=q*10+w%10; w=w/10; } if(q==n){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }