結果
問題 |
No.1131 Deviation Score
|
ユーザー |
![]() |
提出日時 | 2020-11-02 17:12:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 335 bytes |
コンパイル時間 | 602 ms |
コンパイル使用メモリ | 68,864 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-22 06:23:12 |
合計ジャッジ時間 | 2,869 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 20 |
ソースコード
#include <iostream> #include <vector> using namespace std; int main() { #define int long long int n, ave = 0; cin >> n; vector<int> x(n); for(int i = 0; i < n; ++i) { cin >> x.at(i); ave += x.at(i); } ave /= n; for(int i = 0; i < n; ++i) { cout << 50 - (ave - x.at(i))/2 << endl; } }