113 - Power of Cryptography
113
Accepted
UVA Problem: 113 - Power of Cryptography
Time Limit: 3.00 Seconds
Program Language: C++
Publisher: http://www.uvaonlinejudge.org
Time Limit: 3.00 Seconds
Program Language: C++
Publisher: http://www.uvaonlinejudge.org
♣ Try it Out ::
#include<iostream>
#include<cstdlib>
#include<cstdio>
#include<cmath>
using namespace std;
int main()
{
//freopen("113.in", "r", stdin);
double n, p;
while(cin>>n>>p)
printf("%.0lf\n", pow(p,1/n));
return(0);
}
♣ Source Codes ::