hdu 2009

#include<bits/stdc++.h>

using namespace std;
int main()
{
    int n,t;
    float m,ans = 0;
    while(scanf("%f %d",&m,&n)!=EOF){
        ans = 0;
        while(n>0){
            ans += m;
            m = sqrt(m);
            n--;
        }
        printf("%.2f
",ans);
    }
    return 0;
}
原文地址:https://www.cnblogs.com/gudygudy/p/10490031.html