Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6183 | 刘芃伽 | 回文数 | C++ | Accepted | 0 MS | 256 KB | 279 | 2025-01-11 10:28:58 |
#include<iostream> #include<cmath> using namespace std; int main(){ int n,m=0; cin>>n; int temp=n; while(n){ m=m*10+n%10; n/=10; //cout<<n<<' '<<endl; } if(temp==m)cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }