POJ 2109 Power of Cryptography 开根

mac2022-06-30  33

题意:给定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上百实例源码以及开源项目
最新回复(0)