結果
問題 |
No.1131 Deviation Score
|
ユーザー |
![]() |
提出日時 | 2020-08-07 02:53:53 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 107 ms / 2,000 ms |
コード長 | 274 bytes |
コンパイル時間 | 4,161 ms |
コンパイル使用メモリ | 192,036 KB |
最終ジャッジ日時 | 2025-01-12 15:38:09 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 21 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; double ave = 0; int x[n]; for(int i = 0; i < n; ++i) { cin >> x[i]; ave += x[i]; } ave /= n; for(int i = 0; i < n; ++i) { cout << floor(50 - (ave - x[i]) / 2) << '\n'; } return 0; }