#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) { double ave = accumulate(v.begin(), v.end(), 0) / v.size(); rep(i, 0, size(v)) r[i] = int(50.0 - (ave - v[i]) / 2.0); } void solve() { int N; cin >> N; Vd 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(); }