| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140629 | 胡海峰老师 | 回文数 | C++ | Wrong Answer | 0 MS | 272 KB | 526 | 2025-12-18 16:05:39 |
#include <iostream> //designed by hu 2025-10 using namespace std; int main(){ int n; //abc int d; int m =0; cin >> n; // 反向排列 m while(n) { d = n%10; n = n/10; m = m*10 + d; // cout << d<< "----" << m <<endl; } if (m==n) { 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------
121
------Answer-----
YES
------Your output-----
NO