#include<stdio.h> int main() { int a,b,c,d,s,i; for(i=31;i<100;i++){ s=i*i; a=s/1000; b=s%1000/100; c=s%100/10; d=s%10; if(a==b&&c==d) printf("%d\n",s); } return 0; }
原文地址:https://www.cnblogs.com/chenlong991223/p/9784091.html
时间: 2024-10-07 20:30:48