結果

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

ソースコード

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<int> vec(a);
  for(int i=0; i<a; i++){
    cin >> vec.at(i);
  }
  int b = accumulate(vec.begin(),vec.end(),0)/vec.size();
  for(int i=0; i<a; i++){
    cout << 50-((b-vec.at(i))/2) << endl;
  }
  
}
0