結果

問題 No.1131 Deviation Score
ユーザー kurotemko
提出日時 2020-07-27 19:53:13
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 316 bytes
コンパイル時間 2,187 ms
コンパイル使用メモリ 193,620 KB
最終ジャッジ日時 2025-01-12 06:58:05
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {

    int n;
    cin >> n;

    vector<int> x(n);
    double a = 0;
    for(int i = 0; i < n; ++i) {
        cin >> x[i];
        a += (double)x[i];
    }

    a /= n;

    for(int i = 0; i < n; ++i) cout << 50 - ((int)a - x[i]) / 2 << endl;
    return 0;
}
0