#include<iostream> #include<cstdio> #include<cmath> using namespace std; int main() { int n; double p; while(cin >> n >> p) { printf("%.0f\n",pow(p,1.0/n)); } }
时间: 2024-10-21 12:09:23
#include<iostream> #include<cstdio> #include<cmath> using namespace std; int main() { int n; double p; while(cin >> n >> p) { printf("%.0f\n",pow(p,1.0/n)); } }