virtual hust 2013.6.23 数学杂题基础题目 A - Power of Cryptography

题目: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\n",pow(p,1.0/n)+1e-6);
    }
    return 0;
}
View Code

 

posted @ 2013-06-23 09:51  over_flow  阅读(121)  评论(0编辑  收藏  举报