UVA 113 Solution

#include<stdio.h>
#include<math.h>
int main()
{
    double n, p;
    while(scanf("%lf %lf", &n, &p) != EOF)
    {
        printf("%.0lf\n", pow(p, 1.0/n));
    }

    return 0;
}

Comments