标签:\n 测试 amp ble rip lib 数列 des title
#include <stdio.h>
#include <stdlib.h>
#include<math.h>
int main()
{
double a,b;
int n,m,i;
while(~scanf("%d %d",&n,&m))
{
a=n,b=n;
for(i=1;i<m;i++)
{
a=a+pow(b,0.5);
b=pow(b,0.5);
}
printf("%0.2lf\n",a);
}
return 0;
}
标签:\n 测试 amp ble rip lib 数列 des title
原文地址:https://www.cnblogs.com/zhs314159/p/10349474.html