提交时间:2025-12-21 09:11:15
运行 ID: 77034
#include <bits/stdc++.h> using namespace std; int main() { int p,q; for(int i =1;i<=256;i++) { p=i*i; q=0 while(p!=0) { q=q*10+p%10; p/=10; } if(p=q) { cout << i <<endl; } } return 0; }