#include #define rep(i, ss, ee) for (int i = ss; i < ee; ++i) using namespace std; using Vi = vector; void calcDeviationScore(const Vi &v, Vi &r) { double ave = accumulate(v.begin(), v.end(), 0) / v.size(); rep(i, 0, size(v)) r[i] = (50.0 - (ave - v[i]) / 2.0); } void solve() { int N; cin >> N; Vi v(N), r(N); for (auto &e : v) cin >> e; calcDeviationScore(v, r); for (auto e : r) cout << e << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); getchar(); }