#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;
} 
posted on 2011-07-16 09:08  枫叶飘泪  阅读(344)  评论(0编辑  收藏  举报