virtual hust 2013.6.23 数学杂题基础题目 A

题目:Power of Cryptography

思路:水。。直接输出。。记住double比你想象中大得多

#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <cstring>
using namespace std;
int main()
{
    double n,p;
    while(scanf("%lf%lf",&n,&p)!=EOF)
    {
        printf("%.lf
",pow(p,1.0/n)+1e-6);
    }
    return 0;
}
View Code
原文地址:https://www.cnblogs.com/overflow/p/3150621.html