| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 79209 | 刘泽熙 | 回文数 | C++ | Accepted | 0 MS | 272 KB | 230 | 2024-06-30 15:13:41 |
#include <bits/stdc++.h> using namespace std; int main() { int n, r = 0; cin >> n; int t = n; while (n > 0) { r = r * 10 + n % 10; n /= 10; } if (r == t) { cout << "YES"; } else { cout << "NO"; } }