1 #include<stdio.h> 2 #include<math.h> 3 int main() 4 { 5 int i,m; 6 double s,n; 7 while(~scanf("%lf%d",&n,&m)) 8 { 9 for(i=0,s=n; i<m-1; ++i) 10 { 11 n=sqrt(n); 12 s+=n; 13 } 14 printf("%.2lf ",s); 15 } 16 return 0; 17 }