16 November 2015

uva 113

#include<iostream>
#include<stdio.h>
#include<cmath>

using namespace std ;
int main()
{
    double  p,n ;

    while(scanf("%lf %lf",&n,&p)==2)
    {
        double j = pow(p,1/n) ;
       printf("%.0lf\n",j) ;
    }
    return 0 ;
}

No comments:

Post a Comment

UVA 10679 - I Love Strings!!