码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-09-13 22:45:06      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   io   os   ar   art   div   

bubuko.com,布布扣
#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\n",pow(p,1.0/n));//求的是p开n次方
    return 0;
}
View Code

 

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

标签:style   blog   http   color   io   os   ar   art   div   

原文地址:http://www.cnblogs.com/laiba2004/p/3970417.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!