Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
140631 胡海峰老师 回文数 C++ Accepted 0 MS 272 KB 537 2025-12-18 16:08:28

Tests(10/10):


Code:

#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; }