結果

問題 No.1131 Deviation Score
ユーザー tomoT222
提出日時 2020-11-02 17:59:59
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 400 bytes
コンパイル時間 1,635 ms
コンパイル使用メモリ 168,004 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-22 06:26:08
合計ジャッジ時間 4,058 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define rep(i, x) for(ll i = 0; i < x; i++)
#define rep2(i, x) for(ll i = 1; i <= x; i++)
#define all(a) (a).begin(),(a).end()
using ll = long long;
using ld = long double;
using namespace std;
signed main() {
	ll n, ave = 0; cin >> n; vector<ll> v(n);
	rep(i, n) { cin >> v[i]; ave += v[i]; }
	ave /= n;
	rep(i, n) {
		cout << 50 - ((ave - v[i]) / 2) << endl;
	}
	return 0;
}
0