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