結果
| 問題 | 
                            No.1131 Deviation Score
                             | 
                    
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-08-14 02:14:57 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 400 bytes | 
| コンパイル時間 | 772 ms | 
| コンパイル使用メモリ | 72,168 KB | 
| 最終ジャッジ日時 | 2025-01-12 22:15:59 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 1 WA * 20 | 
ソースコード
#include<iostream>
#include <numeric>
#include<vector>
using namespace std;
int main(){
    int n,sum=0;
    cin>>n;
    vector<int> vt(n);
    for (int i=0;i<n;i++){
        cin>>vt.at(i);
        sum+=vt.at(i);
    }
    // int sum = accumulate(vt.begin(), vt.end(),0);
    double avg = sum / n;
    for(int f=0;f<n;f++){
        cout<<int(50 - ((avg-vt.at(f))/2.0))<<"\n";
    }
    return 0;
}