結果

問題 No.1131 Deviation Score
ユーザー LV3zJigVW57oPGy
提出日時 2022-11-11 07:39:42
言語 C++11
(gcc 15.3.0 + boost 1.92.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 79 ms / 2,000 ms
+ 972µs
コード長 508 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 855 ms
コンパイル使用メモリ 177,064 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2026-08-25 20:57:23
合計ジャッジ時間 3,837 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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