#include<stdio.h> int main() { for(int i=31;i<100;i++) {int s=i*i; int a=s/1000; int b=s%1000/100; int c=s%100/10; int d=s%10; if(a==b&&c==d) printf("%d\n",s); } return 0; }
#include<stdio.h> int main() { for(int i=31;i<100;i++) {int s=i*i; int a=s/1000; int b=s%1000/100; int c=s%100/10; int d=s%10; if(a==b&&c==d) printf("%d\n",s); } return 0; }
转载于:https://www.cnblogs.com/Estwind/p/9758037.html