一:数列的和_牛客题霸_牛客网 (nowcoder.com)
#include <stdio.h>
#include <math.h>
int main() {
int n, m;
while (scanf("%d %d", &n,&m) != EOF) {
double tmp = (double)n;
double sum = 0;
while(m--)
{
sum+=tmp;
tmp = sqrt(tmp);
}
printf("%.2lf\n",sum);
}
return 0;
}
简单题重拳出击