Thursday, July 9, 2015

UVA - 113 .cpp file

//MD.ASADUZZAMAN
//MBSTU(IT-14053)
#include<stdio.h>
#include<math.h>
int main()
{
  double n,p;double s;
  while(scanf("%lf %lf",&n,&p)==2)
  {
     s=pow(p,1/n);
     printf("%.0lf\n",s);
  }
  return 0;
}

No comments:

Post a Comment