Run ID:79188
提交时间:2024-06-30 15:00:52
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >>n; int r=0; while(n<=0) { int yu=n%10; r=r*10+yu; n/=10; if(n==r) { cout <<"YES"; return 0; } cout << "NO"; return 0; } return 0; }