hpv感染是怎么引起的:一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少?
来源:百度文库 编辑:神马品牌网 时间:2024/10/04 17:21:24
public class freefall {
public static void main(String[] args) {
int i = 1;
while (true) {
if ((Math.sqrt(i + 100) == (int) Math.sqrt(i + 100))
&& (Math.sqrt(i + 268) == (int) Math.sqrt(i + 268))) {
System.out.println(i);
break;
} else {
i++;
}
}
}
}
21
#include <iostream>
#include <stdlib.h>
#include <cmath>
using namespace std;
int main()
{
double n,m,temp1,temp2;
int flag;
for(int i=1; i<10000; i++){
flag=1;
n=i+100;
m=i+168;
temp1=sqrt(n);
temp2=sqrt(m);
if((int)temp1*(int)temp1==n)
if((int)temp2*(int)temp2==m)
cout<<i<<endl;
}
system("PAUSE");
return 0;
}
运行后结果为156
一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少?
一个正整数,加上100是一个完全平方数加上168后也是一个完全平方数,求这个数
是否存在这样一个正整数,当它加上100时是一个完全平方数,当它加上129时是宁一个完全平方数?
一个正整数,若加上100是,若加上168,则是另一个完全平方数,求这个正整数?
一个数与-540的乘积是一个完全平方数,则满足条件的最大负整数是?着的完全平方数是???
证明四个连续整数的乘积与1的和是一个完全平方数。。
一个数前两个数相等,后两个数相等,这个四位数是完全平方数,这个数是?
4个连续整数的乘积与1的和是一个完全平方数,为什么?(写步骤)
证明4个连续整数的积加上1是一个整数的平方
已知一个自然数,若加上168,是一个整数的平方;若加上100,则是另一个自然数的平方,求这个自然数。