K-variance
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Consider the variance of the sequence as
where
Consider the K-variance as the variance of the consecutive subsequence of length .
Your task is to calculate all K-variances for the given sequence and .
Formally, the -th K-variance is the variance of sequence .
Input
The first line contains two integers and .
The second line contains integers .
Output
Print lines with real numbers .
The answer is considered correct if its absolute or relative error does not exceed .
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 57
Acceptance rate 32%