标签:acm算法 amp c math.h printf
#include <stdio.h> #include <math.h> int main() { int m; double n,sum; while(scanf("%lf%d",&n,&m)!=EOF) { sum=n; while(--m) sum+=n=sqrt(n); printf("%.2lf\n",sum); } }
HDU2009
原文地址:http://blog.csdn.net/sky_miange/article/details/41747495