#include <stdio.h>
#include <math.h>
int main(void)
{
int a = 0;
int b = 0;
int i = 0;
float c = 0;
float d = 0;
float diff_a = 0;
float diff_b = 0;
do
{
a = i+100;
b = i+168;
//使用sqrt函数计算开方后的数
c = sqrt(a);
d = sqrt(b);
//判断开方后是否为整数
diff_a = c - (int)c;
diff_b = d - (int)d;
if(diff_a == 0 && diff_b ==0)
{
printf("%d \r\n",i);
break;
}
i++;
}while(1);
return 0;
}