Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
107269 华雅萱 回文数 C++ Accepted 1 MS 272 KB 275 2025-01-17 15:11:00

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int n,m=0,a=0; 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; }