#include #include int main() { long double n = 0.0; long double x[100000]; long double s = 0.0; long double a = 0.0; long double d = 0.0; int i; scanf("%Le", &n); for(i = 0; i < n; i++) { scanf("%Le", &x[i]); s = s + x[i]; } a = s / n; //誤差? for(i = 0; i < n; i++) { d = 50.0 - ((a - x[i]) / 2.0); printf("%.0Lf\n", d); } return 0; }