結果

問題 No.1131 Deviation Score
ユーザー shizima
提出日時 2020-08-04 23:11:13
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 15 ms / 2,000 ms
コード長 1,238 bytes
コンパイル時間 2,300 ms
コンパイル使用メモリ 197,840 KB
最終ジャッジ日時 2025-01-12 14:26:32
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#pragma GCC optimize("O3")

#define ll long long
#define ld long double
#define fi first
#define se second
#define mp make_pair

#define pi pair<int,int>
#define pll pair<ll,ll>
#define vi vector<int>
#define vll vector<ll>
#define vpi vector<pair<int,int>>
#define vpll vector<pair<ll,ll>>

#define rep(i, n) for(ll i = 0; i < (n); ++i)
#define rep2(i, a, b) for(ll i = a; i <= (b); ++i)
#define rep3(i, a, b) for(ll i = a; i >= (b); --i)
#define all(v) (v).begin(), (v).end()
#define si(v) (int)(v).size()

using namespace std;

template <class T> using pq = priority_queue<T>;
template <class T> using pqg = priority_queue<T, vector<T>, greater<T>>;
template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return true; } return false; }
template <class T> bool chmin(T &a, const T &b) { if (b < a) { a = b; return true; } return false; }

constexpr ll MOD = 1000000007, MAX = 100005;

signed main()
{
  cout << fixed << setprecision(10);
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);

  ll n; cin >> n;
  vll a(n);
  rep(i, n) cin >> a[i];

  ld sum = accumulate(all(a),0LL);
  sum /= n;

  rep(i, n) {
    int ans = 50 - (sum - a[i]) / 2;
    cout << ans << '\n';
  }

  return (0);
}
0