本以为可能要大数计算,网上看了下貌似double就够了。
/*
* uva113.cpp
*
* Created on: 2013-4-16
* Author: kevinjiang
*/
#include <cstdio>
#include <cmath>
int main() {
double n, p;
while (scanf("%lf%lf", &n, &p) != EOF) {
printf("%.lf\n", pow(p, 1/n));
}
return 0;
}