結果
問題 |
No.1131 Deviation Score
|
ユーザー |
![]() |
提出日時 | 2020-08-10 21:09:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 153 ms / 2,000 ms |
コード長 | 294 bytes |
コンパイル時間 | 1,767 ms |
コンパイル使用メモリ | 170,364 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 03:46:02 |
合計ジャッジ時間 | 4,277 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 21 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; vector<double> x(n); double sum=0; for(int i=0;i<n;i++){ cin>>x.at(i); sum+=x.at(i); } double ave=sum/n; for(int i=0;i<n;i++) cout<<(int)(50-((ave-x.at(i))/2))<<endl; }