#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
int main()
{
    int n,m;
    while(scanf("%d%d",&n,&m)!=EOF)
    {
        double sum,t=n;
        for(int i=1;i<=m;i++)
        {
            if(i==1)
               sum=n;
            else
            {
                t=sqrt(t);
                sum+=t;
            }
        }
        printf("%.2lf\n",sum);
    }
    //system("pause");
    return 0;
} 

相关文章:

  • 2021-06-26
  • 2021-06-01
  • 2021-07-23
  • 2021-10-24
  • 2021-04-11
  • 2021-04-06
  • 2021-04-17
  • 2021-11-16
猜你喜欢
  • 2022-12-23
  • 2021-12-13
  • 2021-08-04
  • 2021-08-16
  • 2021-04-16
  • 2021-04-26
相关资源
相似解决方案