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