// UVa 113 - Power of Cryptography #include <cmath> #include <iostream> #include <stdio.h> using namespace std; int main() { int n; double p; while (cin >> n >> p) { double sol = exp(log(p) / n); printf("%.0f\n", sol); } return 0; }
No comments:
Post a Comment