/* -*- coding: utf-8 -*- * * 1131.cc: No.1131 Deviation Score - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ const int MAX_N = 100000; /* typedef */ /* global variables */ int xs[MAX_N]; /* subroutines */ /* main */ int main() { int n; scanf("%d", &n); int xsum = 0; for (int i = 0; i < n; i++) { scanf("%d", xs + i); xsum += xs[i]; } for (int i = 0; i < n; i++) { int d = 50.0 - (double)(xsum - xs[i] * n) / (2 * n); printf("%d\n", d); } return 0; }