Code:
#include<stdio.h>
#include<math.h>
int main()
{
double n,p;
while(scanf("%lf %lf",&n,&p)!=EOF){
printf("%.0lf\n",exp(log(p)/n));
}
return 0;
}
#include<math.h>
int main()
{
double n,p;
while(scanf("%lf %lf",&n,&p)!=EOF){
printf("%.0lf\n",exp(log(p)/n));
}
return 0;
}
No comments:
Post a Comment