标签:
#include"stdio.h" #include"math.h" int main(void){ double m, n; while(scanf("%lf%lf", &n, &m) != EOF){ double sum, x; sum = n; int i; for(i=1; i<m; i++){ n = sqrt(n); sum += n; } printf("%.2lf\n", sum); } return 0; }
标签:
原文地址:http://www.cnblogs.com/cnfanhua/p/4220935.html