题意:给定n, p, 求pow(p, 1/n)
10955211NY_lv102109Accepted196K0MSC++192B2012-10-25 18:56:50
View Code
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
double n, p;
while (scanf(
"%lf %lf", &n, &p) !=
EOF)
{
printf("%0.0lf\n", pow(p,
1/
n));
}
return 0;
}
转载于:https://www.cnblogs.com/lv-2012/archive/2012/10/25/2739954.html
相关资源:JAVA上百实例源码以及开源项目
转载请注明原文地址: https://mac.8miu.com/read-55308.html