public static void main(String[] args) {
int count = 0;
for (int i = 0; i < 1000000; i++) {
if (Math.sqrt(i + 100) % 1 == 0 && Math.sqrt(i + 168) %1 == 0) {
System.out.print(i);
count++;
if (count % 10 == 0)
System.out.println();
}
}
}
一个整数,它加上100后是一个完全平方数,加上168又是一个完全平方数,请问该数是多少?
猜你喜欢
转载自www.cnblogs.com/archimedes-euler/p/9975792.html
今日推荐
周排行