2018携程实习生大数据分析笔试练习题

#include<bits/stdc++.h>
using namespace std;
int main(){
int m;
double n,sum=0;
cin>>n>>m;
for(int i=0;i<m;++i){
sum+=n;
n=sqrt(n);
}
printf("%.2lf\n",sum);
return 0;

}
[/code]

 


![在这里插入图片描述](https://img-blog.csdnimg.cn/20210608151750993.gif)

posted @ 2021-07-01 20:51  zsfxg  阅读(27)  评论(0)    收藏  举报