結果

問題 No.1131 Deviation Score
ユーザー karinohitokarinohito
提出日時 2021-03-29 19:08:08
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 145 ms / 2,000 ms
コード長 965 bytes
コンパイル時間 1,062 ms
コンパイル使用メモリ 103,124 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-05-07 00:26:05
合計ジャッジ時間 3,587 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
6,812 KB
testcase_01 AC 4 ms
6,812 KB
testcase_02 AC 125 ms
6,940 KB
testcase_03 AC 58 ms
6,940 KB
testcase_04 AC 117 ms
6,948 KB
testcase_05 AC 43 ms
6,944 KB
testcase_06 AC 124 ms
6,944 KB
testcase_07 AC 61 ms
6,940 KB
testcase_08 AC 109 ms
6,940 KB
testcase_09 AC 41 ms
6,940 KB
testcase_10 AC 105 ms
6,944 KB
testcase_11 AC 109 ms
6,944 KB
testcase_12 AC 96 ms
6,940 KB
testcase_13 AC 122 ms
6,944 KB
testcase_14 AC 27 ms
6,944 KB
testcase_15 AC 27 ms
6,940 KB
testcase_16 AC 112 ms
6,940 KB
testcase_17 AC 45 ms
6,940 KB
testcase_18 AC 145 ms
6,940 KB
testcase_19 AC 3 ms
6,940 KB
testcase_20 AC 2 ms
6,944 KB
testcase_21 AC 2 ms
6,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
//#include<atcoder/all>
#include <numeric>
#include <cmath>
#include <limits>
#include <stdio.h>
#include <iomanip>
#include <string> 
#include <vector>
#include <algorithm>
#include <utility> 
#include <tuple> 
#include <cstdint> 
#include <cstdio> 
#include <map> 
#include <queue>
#include <set> 
#include <stack> 
#include <deque> 
#include <unordered_map> 
#include <unordered_set>
#include <bitset> 
#include <cctype>
//using namespace atcoder;
using namespace std;
using ll = long long;
#define all(A) A.begin(),A.end()
using vll = vector<ll>;
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
using Graph = vector<vector<pair<ll, ll>>>;
vector<bool> seen;
bool C = true;
vector<ll> dist;
ll mod = 998244353;


int main() {

    ll N;
    cin >> N;
    vll X(N);
    ll S = 0;
    rep(i, N) {
        cin >> X[i];
        S += X[i];
    }
    rep(i, N) {
        cout << (100 * N - S + X[i] * N) / (2 * N) << endl;
    }
}
0