标签:ace amp sqrt str include php math.h log code
http://acm.hdu.edu.cn/showproblem.php?pid=2009
#include<iostream> #include<stdio.h> #include<math.h> #include<queue> #include<stack> #include<algorithm> #define PI 3.1415927 using namespace std; int main() { double n,m,i; while(scanf("%lf%lf",&n,&m)!=EOF) { double s=0; for(i=m;i>0;i--)//逆推 { s+=n; n=sqrt(n); } printf("%.2lf\n",s); } return 0; }
标签:ace amp sqrt str include php math.h log code
原文地址:http://www.cnblogs.com/hhkobeww/p/7467253.html