#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 ;
}
#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