Run ID:79190

提交时间:2024-06-30 15:04:33

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