标签:eterm sts 数字 with min mit net center href
题目链接:http://poj.org/problem?id=2109
参考链接:http://blog.csdn.net/synapse7/article/details/11672691
乍一看似乎高精度,但是double足矣。。。。。15位有效数字, 指数范围-307~308(10位基数)
代码:
1 int main(){ 2 double n, p; 3 while(scanf("%lf %lf", &n, &p) == 2){ 4 double k = pow(p, 1 / n); 5 printf("%.0f\n", k); 6 } 7 8 }
题目:
Time Limit: 1000MS | Memory Limit: 30000K | |
Total Submissions: 25135 | Accepted: 12605 |
Description
Input
Output
Sample Input
2 16 3 27 7 4357186184021382204544
Sample Output
4 3 1234
POJ_2109 Power of Cryptography 数学
标签:eterm sts 数字 with min mit net center href
原文地址:http://www.cnblogs.com/bolderic/p/6843899.html