結果

問題 No.1131 Deviation Score
ユーザー kpinkcat
提出日時 2023-07-23 21:50:06
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 466 bytes
コンパイル時間 1,301 ms
コンパイル使用メモリ 106,848 KB
最終ジャッジ日時 2025-02-15 18:41:02
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<algorithm>
#include<cctype>
#include<set>
#include<bitset>
#include<math.h>
#include<map>
#include<queue>
#include<iomanip>
using namespace std;

int main(){
    long long n, sum1 = 0, d;
    double a;
    cin >> n;
    vector<int> x(n);
    for (int i = 0; i < n; i++){
        cin >> x[i];
        sum1 += x[i];
    }
    a = sum1/n;
    for (int i = 0; i < n; i++){
        cout << 50 - (a - x[i])/2 << endl;
    }
}

0