結果

問題 No.1131 Deviation Score
ユーザー AkabaEriAkabaEri
提出日時 2020-08-30 10:36:17
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 507 bytes
コンパイル時間 1,699 ms
コンパイル使用メモリ 163,800 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-10 12:30:40
合計ジャッジ時間 4,086 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
4,380 KB
testcase_01 AC 4 ms
4,380 KB
testcase_02 AC 126 ms
4,376 KB
testcase_03 AC 57 ms
4,380 KB
testcase_04 AC 112 ms
4,376 KB
testcase_05 AC 42 ms
4,380 KB
testcase_06 AC 119 ms
4,380 KB
testcase_07 AC 58 ms
4,376 KB
testcase_08 AC 109 ms
4,376 KB
testcase_09 AC 41 ms
4,376 KB
testcase_10 AC 104 ms
4,380 KB
testcase_11 AC 109 ms
4,380 KB
testcase_12 AC 94 ms
4,376 KB
testcase_13 AC 119 ms
4,380 KB
testcase_14 AC 26 ms
4,376 KB
testcase_15 AC 26 ms
4,376 KB
testcase_16 AC 112 ms
4,376 KB
testcase_17 AC 44 ms
4,380 KB
testcase_18 AC 142 ms
4,380 KB
testcase_19 AC 2 ms
4,376 KB
testcase_20 AC 2 ms
4,380 KB
testcase_21 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i, n) for(int i= 0; i < (n); i++)
using ll= long long int;
using namespace std;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
ll mod= 1e9 + 7;



int main() {
  int n;
  cin >>n;
  int a[n];
  rep(i,n)cin >>a[i];
  int ave=0;
  rep(i,n)ave+=a[i];

  rep(i,n){
    int ans=(100*n-(ave-a[i]*n))/(2*n);
    cout << ans << endl;
  }
}
0