結果

問題 No.1131 Deviation Score
ユーザー okkuukenkenokkuukenken
提出日時 2022-12-18 22:35:42
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 140 ms / 2,000 ms
コード長 605 bytes
コンパイル時間 7,496 ms
コンパイル使用メモリ 348,652 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-29 01:45:19
合計ジャッジ時間 10,198 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
5,248 KB
testcase_01 AC 4 ms
5,376 KB
testcase_02 AC 125 ms
5,376 KB
testcase_03 AC 58 ms
5,376 KB
testcase_04 AC 114 ms
5,376 KB
testcase_05 AC 43 ms
5,376 KB
testcase_06 AC 127 ms
5,376 KB
testcase_07 AC 59 ms
5,376 KB
testcase_08 AC 109 ms
5,376 KB
testcase_09 AC 41 ms
5,376 KB
testcase_10 AC 107 ms
5,376 KB
testcase_11 AC 108 ms
5,376 KB
testcase_12 AC 93 ms
5,376 KB
testcase_13 AC 123 ms
5,376 KB
testcase_14 AC 27 ms
5,376 KB
testcase_15 AC 26 ms
5,376 KB
testcase_16 AC 110 ms
5,376 KB
testcase_17 AC 45 ms
5,376 KB
testcase_18 AC 140 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 #

#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long long ull;
constexpr int dx[]={1,0,0,-1},dy[]={0,1,-1,0};
constexpr int Dx[]={1,1,0,-1,-1,-1,0,1},Dy[]={0,1,1,1,0,-1,-1,-1};
constexpr int mod=998244353,Mod=1e9+7,inf=Mod;
constexpr ll linf=(ll)inf*inf;
//*
#include<atcoder/all>
using namespace atcoder;
//*/
int main(){
	static int n,x[100000];
	cin>>n;
	for(int i=0;i<n;i++)
		cin>>x[i];
	int sum=accumulate(x,x+n,0);
	for(int i=0;i<n;i++)
		cout<<(100*n-(sum-x[i]*n))/(2*n)<<endl;
}
0