Click Here to see the problem detail.

Solution

It is suggested you to read the problem first. Try to solved yourself then see the source code. Don’t copy paste.

Source Code
#include<stdio.h>
#include<math.h>
 
int main()
{
    double p,n;
    while(scanf("%lf%lf",&n,&p)==2)
    {
        printf("%.0lf\n",pow(p,(1/n)));
    }
    return 0;
}

 


Next Previous