标签:
Time Limit: 1000MS | Memory Limit: 30000K | |
Total Submissions: 23332 | Accepted: 11779 |
Description
Input
Output
Sample Input
2 16 3 27 7 4357186184021382204544
Sample Output
4 3 1234
Source
#include <cstdio> #include <cmath> int main() { double n, p; while(~scanf("%lf%lf", &n, &p)){ printf("%.0f\n", pow(p, 1/n)); } return 0; }
POJ 2109 Power of Cryptography
标签:
原文地址:http://www.cnblogs.com/inmoonlight/p/5837887.html