Power of Cryptography 数学题 注意double会表示的最大范围

Power of Cryptography 数学题 注意double能表示的最大范围
/*
整型           int         -2*10^9 ~ 2*10^9
单精度型   float       -3.4*10^38 ~ 3.4*10^38
双精度型   double    -1.7*10^308 ~ 1.7*10^308*/
#include <stdio.h>
#include <math.h>
int main()
{
    double n,x;
    while (scanf("%lf%lf",&n,&x)!=EOF) printf("%.0f\n",pow(x,1.0/n));
    return 0;
}