POJ2109

 

类型             长度 (bit)            有效数字                    绝对值范围
float             32                      6~7                  10^(-37) ~ 10^38
double          64                     15~16               10^(-307) ~10^308
long double   128                   18~19                10^(-4931) ~ 10 ^ 4932

Problem: 2109   User: qq1203456195
Memory: 280K   Time: 0MS
Language: C++   Result: Accepted
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
    double n,p;
    while (cin>>n>>p)
        cout<<pow(p,1.0/n)<<endl;
    return 1;
}
posted @ 2012-04-12 21:29  ZH奶酪  阅读(845)  评论(0编辑  收藏  举报