第1个回答 2020-01-08
#include<stdio.h>
#include<math.h>
int main()
{
int x = 0;
int a = x + 100;
int b = x + 168;
bool flag = true;
while (flag)
{
if (sqrt(x+a) == (int)sqrt(x + a) && sqrt(x + b) == (int)sqrt(x+b))
{
flag = false;
}
else
{
x++;
}
}
printf("%d", x);
return 0;
}本回答被网友采纳