Run ID:140631
提交时间:2025-12-18 16:08:28
#include <iostream> //designed by hu 2025-10 using namespace std; int main(){ int n; //abc int d; int m =0; cin >> n; int nn =n; // 反向排列 m while(n) { d = n%10; n = n/10; m = m*10 + d; // cout << d<< "----" << m <<endl; } if (m==nn) { cout <<"YES"; } else{ cout<< "NO"; } // // d = n%10; // n = n/10; // cout << d<<endl; // // d = n%10; // n = n/10; // cout << d<<endl; // // // d = n%10; // n = n/10; // cout << d<<endl; return 0; }