Saturday 5 May 2012

UVa 113 Power of Cryptography Solution

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

6 comments:

  1. Hello Bro, double bad diye jdi integer di tahole right output dai na ker karon ki hobe jdi actu bistarito bolten otoba kono link diten????

    ReplyDelete
    Replies
    1. Integer dile tokhon dosomik er porer maan ta r count korbe nah. Karon integer diye sudhu purnosonkha er input,output and processing kora jai. Dosomik sonkha niye kaj korte hole amader float,double etc use korte hobe.
      Ejonnnoi integer dile right output dei nah.

      Delete
  2. how double p is storing that big number??

    ReplyDelete
  3. how double p is storing that big number??

    ReplyDelete