結果

問題 No.1131 Deviation Score
ユーザー CleyLCleyL
提出日時 2021-08-08 15:09:46
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 178 ms / 2,000 ms
コード長 315 bytes
コンパイル時間 713 ms
コンパイル使用メモリ 73,364 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-19 15:21:57
合計ジャッジ時間 3,944 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
4,348 KB
testcase_01 AC 5 ms
4,348 KB
testcase_02 AC 159 ms
4,348 KB
testcase_03 AC 74 ms
4,348 KB
testcase_04 AC 144 ms
4,348 KB
testcase_05 AC 55 ms
4,348 KB
testcase_06 AC 154 ms
4,348 KB
testcase_07 AC 74 ms
4,348 KB
testcase_08 AC 136 ms
4,348 KB
testcase_09 AC 50 ms
4,348 KB
testcase_10 AC 129 ms
4,348 KB
testcase_11 AC 135 ms
4,348 KB
testcase_12 AC 117 ms
4,348 KB
testcase_13 AC 152 ms
4,348 KB
testcase_14 AC 33 ms
4,348 KB
testcase_15 AC 32 ms
4,348 KB
testcase_16 AC 142 ms
4,348 KB
testcase_17 AC 58 ms
4,348 KB
testcase_18 AC 178 ms
4,348 KB
testcase_19 AC 3 ms
4,348 KB
testcase_20 AC 2 ms
4,348 KB
testcase_21 AC 2 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
    }
}
0