Run ID:79203

提交时间:2024-06-30 15:12:48

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