Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
152549 邓弘锐 回文数 C++ Accepted 1 MS 268 KB 237 2026-04-26 15:24:23

Tests(10/10):


Code:

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