转载自:https://blog.csdn.net/lyy289065406/article/details/6642602
#include <math.h>
#include <iostream>
using namespace std;
int main(void) {
double n , p;
while(cin >> n >> p) {
double tmp = pow(p, 1 / n); // p开n次方
int k = floor(tmp + 0.5); // 四舍五入(+0.5后向下取整)
cout << k << endl;
}
return 0;
}