| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 88757 | sh25_zhangyj | 对称平方数1 | C++ | 解答错误 | 1 MS | 248 KB | 414 | 2026-05-15 15:38:23 |
#include <iostream> #include <string> #include <algorithm> using namespace std; bool isPalindrome(int x) { string s = to_string(x); string rev = s; reverse(rev.begin(), rev.end()); return s == rev; } int main() { for (int n = 1; n <= 256; ++n) { int square = n * n; if (isPalindrome(square)) { cout << n << endl; } } return 0; }