poj 2109.Power of Cryptography

来源:互联网 发布:sql中update更新数据 编辑:程序博客网 时间:2024/05/18 00:58

Power of Cryptography

类型          长度 (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

#include<iostream>#include<cmath>using namespace std;double n,p;int main(){while(cin>>n>>p){cout<<pow(p,1/n)<<endl;}}


 

原创粉丝点击