| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140630 | 胡海峰老师 | 回文数 | C++ | Wrong Answer | 1 MS | 268 KB | 535 | 2025-12-18 16:07:45 |
#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; }
------Input------
4503
------Answer-----
NO
------Your output-----
3----3 0----30 5----305 4----3054 NO