public class test { public static void main(String[] args) {
int k;
int t1,t2;
int a=(int) Math.sqrt(1000);
for(int i=a+1;i<=99;i++){
k=i;
k=k*k;
t1=k/100;
t2=k%100;
if(k==(t1+t2)*(t1+t2)){
System.out.println("符合条件:"+k);
}
}
/* for(int i=1000;i<=9999;i++){
boolean ok=f(i);
if(ok){
System.out.print("符合条件:"+i);
}
}
}
public static boolean f(int b){
int temp=b;
int a[]=new int[4];
int i=0;
a[i]=b%10;
b=b/10;
while(b>=10){
i++;
a[i]=b%10;
b=b/10;
}
i++;
a[i]=b;
int c=a[0]+a[1]*10;
int d=a[2]+a[3]*10;
int e=(c+d)*(c+d);
if(e==temp){
return true;
}
return false;
*/
}
}