Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147142 王晏林 回文数 C++ Accepted 1 MS 272 KB 233 2026-02-03 10:51:05

Tests(10/10):


Code:

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