对 p 开 n 次方 (数学推论)

#include<stdio.h>
#include<string.h>
#include<algorithm>
#include<math.h>
using namespace std;
int main()
{
    double n,p;
    while(scanf("%lf%lf",&n,&p)!=EOF)
        printf("%.0lf
",pow(p,1.0/n));//求的是p开n次方
    return 0;
}
View Code
原文地址:https://www.cnblogs.com/laiba2004/p/3970417.html