提交时间:2023-08-04 21:55:43
运行 ID: 24106
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 10; #define ll long long int main() { for(int i = 0; i <= 256; i++) { int n = i * i, sum = 0; while(n) { sum = sum * 10 + n % 10; n /= 10; } if(sum == i * i) cout << i << " "; } return 0; }