結果

問題 No.1131 Deviation Score
ユーザー FlkanjinFlkanjin
提出日時 2022-01-06 16:08:19
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 1,732 bytes
コンパイル時間 1,555 ms
コンパイル使用メモリ 142,004 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-24 23:41:08
合計ジャッジ時間 3,487 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 25 ms
5,376 KB
testcase_03 AC 13 ms
5,376 KB
testcase_04 AC 23 ms
5,376 KB
testcase_05 AC 9 ms
5,376 KB
testcase_06 AC 24 ms
5,376 KB
testcase_07 AC 13 ms
5,376 KB
testcase_08 AC 22 ms
5,376 KB
testcase_09 AC 9 ms
5,376 KB
testcase_10 AC 21 ms
5,376 KB
testcase_11 AC 22 ms
5,376 KB
testcase_12 AC 19 ms
5,376 KB
testcase_13 AC 25 ms
5,376 KB
testcase_14 AC 7 ms
5,376 KB
testcase_15 AC 7 ms
5,376 KB
testcase_16 AC 23 ms
5,376 KB
testcase_17 AC 10 ms
5,376 KB
testcase_18 AC 28 ms
5,376 KB
testcase_19 AC 2 ms
5,376 KB
testcase_20 AC 2 ms
5,376 KB
testcase_21 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _USE_MATH_DEFIMES
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <clocale>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <regex>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>

const int MOD = 1'000'000'007;
const int MOD2 = 998'244'353;
const int INF = 1'000'000'000; //1e9
const int NIL = -1;
const long long LINF = 1'000'000'000'000'000'000; // 1e18
const long double EPS = 1E-10L;

template<class T, class S> inline bool chmax(T &a, const S &b){
    if(a < b){a = b; return true;}
    return false;
}
template<class T, class S> inline bool chmin(T &a, const S &b){
    if(b < a){a = b; return true;}
    return false;
}
template<class T, class Container> inline bool exist(Container &s, const T &e){
    return (s.find(e) != std::end(s));
}
template<class T> inline bool inside(T x, T lx, T rx){
    return (std::clamp(x, lx, rx) == x);
}
template<class T> inline bool inside(T x, T y, T lx, T rx, T ly, T ry){
    return inside(x, lx, rx) && inside(y, ly, ry);
}










int main(){
    int N; std::cin >> N;
    std::vector<int> x(N);
    for(auto &e: x) std::cin >> e;
    int S{std::accumulate(std::begin(x), std::end(x), 0)};
    for(int i{0}; i < N; ++i){
        std::cout << ((100*N - S + N*x[i]) / (2*N)) << "\n";
    }
    return 0;
}
0