Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7880 | 侯宜辰 | 回文数 | C++ | Accepted | 0 MS | 264 KB | 431 | 2025-05-24 19:55:37 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,m=0; cin>>n; int t=n; while(t){ m=m*10+t%10; t/=10; } if(n==m)cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }