結果
| 問題 | 
                            No.1131 Deviation Score
                             | 
                    
| ユーザー | 
                            👑  | 
                    
| 提出日時 | 2021-08-08 15:09:46 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 182 ms / 2,000 ms | 
| コード長 | 315 bytes | 
| コンパイル時間 | 884 ms | 
| コンパイル使用メモリ | 73,600 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-19 11:30:10 | 
| 合計ジャッジ時間 | 3,590 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 21 | 
ソースコード
#include <iostream>
#include <cmath>
#include <vector>
using namespace std;
int main(){
    int n;cin>>n;
    double a = 0;
    vector<int> A(n);
    for(int i = 0; n > i; i++){
        cin>>A[i];
        a+=A[i];
    }
    a/=n;
    for(int i = 0; n > i; i++){
        cout << floor(50-(a-A[i])/2) << endl;
    }
}