一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少?

public static void main(String args[]){

for(int x=1;x<=10000;x++){

if(Math.sqrt(x+100)%1==0)

if(Math.sqrt(x+268)%1==0)

System.out.println(x);

}

}

原文地址:https://www.cnblogs.com/chenligeng/p/7616186.html