Saturday, August 13, 2011

UVA 113 solution C++ Code





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

No comments:

Post a Comment