結果

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

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
    int n;
    cin >> n;

    vector<double> vt(n);
    for (int i = 0; i < n; ++i) {
        cin >> vt[i];
    }
    
    auto ave = accumulate(vt.begin(), vt.end(), 0) / (double) n;
    for (int i = 0; i < n; ++i) {
        cout << (int) (50 - (ave - vt[i]) / 2) << endl;
    }
    return 0;
}
0