题目大意: K ^ N = P, 给N 和 P, 求K。数据规模 :1<=n<= 200, 1<=p<10^101 and there exists an integer k, 1<=k<=109 。
#include<iostream> #include<cmath> using namespace std; int main(int argc,char *argv[]) { int n; double k,p; while (cin>>n>>p) { k=pow(p,1.0/n); cout<<k<<endl; } return 0; }