結果

問題 No.1131 Deviation Score
ユーザー private-dev-acctprivate-dev-acct
提出日時 2021-05-05 13:49:10
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,420 bytes
コンパイル時間 2,040 ms
コンパイル使用メモリ 200,632 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-10-11 07:32:12
合計ジャッジ時間 3,453 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 1 ms
4,372 KB
testcase_21 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;

#define _CRT_SECURE_NO_WARINGS
#define INIT ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define ALL(obj) (obj).begin(),(obj).end()
#define RALL(obj) (obj).rbegin(),(obj).rend()
#define SORT(obj) sort(ALL(obj))
#define RSORT(obj) sort(RALL(obj))
#define REP(i,n) for(int i = 0; i < (n); ++i)
#define COUT_ALL(x) for(auto i=x.begin();i!=--x.end();i++)cout<<*i<<" ";cout<<*--x.end()<<endl;

using ll = long long;
using P = pair<int, int>;
using VI = vector<int>;
using VP = vector<P>;

const int INF = 1e9;
const int MOD = 1e9 + 7;
const ll LINF = 1e18;
const double PI = 3.14159265358979323846;

template<class T>bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; }

template<typename T>
istream& operator >> (istream& is, vector<T>& vec) {for (T& x : vec) is >> x;return is;}
template<typename T>
ostream& operator << (ostream& os, vector<T>& vec) {
	for (int i = 0; i < vec.size(); i++) { os << vec[i] << (i + 1 == vec.size() ? "" : " "); }
	return os;}
int ctoi(char c) { return (c >= '0' && c <= '9') ? c - '0' : 0; }

#pragma region F

#pragma endregion

signed main()
{
	INIT; // 必須

	int n; cin >> n;
	VI x(n); cin >> x;
	int A = accumulate(ALL(x),0) / n;
	REP(i, n) {
		auto D = 50 - ((A - x[i]) / 2);
		cout << D << "\n";
	}

	return 0;
}
0