#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int main(){
int n,m;
while(cin >> n >> m){
int i;
double sum = n;
double q = sqrt(n);
for(i = 1; i < m; ++i){
sum += q;
q = sqrt(q);
}
printf("%.2lf\n",sum);
}
return 0;
}
杭电oj 2009
最新推荐文章于 2023-11-09 16:07:23 发布