Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164005 江佳航 回文数 C++ Accepted 1 MS 280 KB 424 2026-10-31 16:42:04

Tests(10/10):


Code:

#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,fz=0; cin>>n; m=n; while(m!=0){ fz=m%10+fz*10; m/=10; } if(fz==n)cout<<"YES"; else cout<<"NO"; return 0; }