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