#CCBCHBAHAI0000050. Độ lệch so với trung bình (Deviation from the Mean)
Độ lệch so với trung bình (Deviation from the Mean)
Độ lệch so với trung bình (Deviation from the Mean)
Source: Schaum's Outline of Programming with C
Version: Phuoc Hung OJ Extended
Problem
Given an integer array .
Its arithmetic mean is
For each index , define the signed deviation from the mean as
Print , each with exactly 6 digits after the decimal point.
Input
The first line contains integer . The second line contains exactly integers .
Output
Print the real values on one line, separated by spaces, each with exactly 6 digits after the decimal point.
Subtask
Subtask 1 (100 points): ; .
Example
Input
4
1 2 3 6
Output
-2.000000 -1.000000 0.000000 3.000000
Explanation
Here , so the deviations are .