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