Returns the sum of the number of columns. Time Limit: 1000 ms Memory limit: 65536 K any questions? Click Here ^_^ The topic description series is defined as follows: the first item of the series is n, and the subsequent items are the square root of the previous item, and the sum of the first m items of the series is obtained. There are multiple groups of input data. Each group occupies one row and consists of two integers n (n <10000) and m (m <1000). The meanings of n and m are as described above. For each group of input data, the sum of the output columns. Each test instance occupies one row and requires two decimal places for accuracy. Sample Input
81 42 2
Sample output
94.733.41
# Include
# Include
Void main ()
{
Int m, I, n;
Double r, s;
While (scanf ("% d", & n, & m )! = EOF)
{
S = n;
R = n;
For (I = 1; I {
R = sqrt (r );
S = s + r;
}
Printf ("%. 2lf \ n", s );
}
}