Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
98587 唐安轩 回文数 C++ Accepted 1 MS 276 KB 265 2024-11-23 11:43:34

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int n,m=0,a; cin>>n; a=n; while(n!=0){ m=m*10+n%10; n=n/10; } if(m==a){ cout<<"YES"<<endl; }else{ cout<<"NO"<<endl; } return 0; }