結果

問題 No.1131 Deviation Score
ユーザー LV3zJigVW57oPGy
提出日時 2022-11-11 07:39:42
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 156 ms / 2,000 ms
コード長 508 bytes
コンパイル時間 1,890 ms
コンパイル使用メモリ 160,444 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-13 02:45:36
合計ジャッジ時間 4,604 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h> 
using namespace std;
#include <stdio.h>
#include <iomanip>
#include <iostream>
#include <string>
#include <algorithm>

int main(){
  
  int a;
  cin >> a;
  vector<double> vec(a);
  for(int i=0; i<a; i++){
    cin >> vec.at(i);
  }
  double b = accumulate(vec.begin(),vec.end(),0.0)/vec.size();
  //cout << b <<endl <<  accumulate(vec.begin(),vec.end(),0) << endl<<vec.size() << endl;
  for(int i=0; i<a; i++){
    int c =50-((b-vec.at(i))/2);
    cout << c << endl;
  }
  
}
      
0