Thursday, July 2, 2015

113 - Power of Cryptography

#include <math.h>
#include <stdio.h>
#include <iostream>

using namespace std;
int main()
{
double n,p;
while(scanf("%lf%lf",&n,&p) == 2)
{
printf("%.0lf\n",pow(p,1/n));
}

return 0;
}

No comments:

Post a Comment