![](https://i-blog.csdnimg.cn/blog_migrate/fcc50d4e36fa832e31b0481a21393557.png)
![](https://i-blog.csdnimg.cn/blog_migrate/5c8e9bf2631e5ffc6653af7bd9a9f08f.png)
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int a[1000];
int i,sum=0;
for (i = 0; i < n; i++) {
cin >> a[i];
sum += a[i];
}
double a1 = sum * 1.0 / n;
double d1 = 0;
for (i = 0; i < n; i++) {
d1 += pow(a[i] - a1,2);
}
double d = d1 / n;
double f[1000] = { 0 };
for (i = 0; i < n; i++) {
f[i] = (a[i] - a1) / sqrt(d);
printf("%f\n", f[i]);
}
}