#include <stdio.h> #include <math.h> int main() { double n, p; while (scanf("%lf%lf", &n, &p) != EOF) { printf("%.lf\n", pow(p, 1/n)); } return 0; }
#include <stdio.h> #include <math.h> int main() { double n, p; while (scanf("%lf%lf", &n, &p) != EOF) { printf("%.lf\n", pow(p, 1/n)); } return 0; }
转载于:https://www.cnblogs.com/lovewzh/archive/2013/02/25/wangzehu.html