Вы не можете выбрать более 25 тем
Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
17 строки
310 B
C++
17 строки
310 B
C++
#include <math.h>
|
|
#include <iostream>
|
|
#include <conio.h>
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
double sr(const vector<size_t>& bins) {
|
|
size_t totalHeight = 0;
|
|
for (size_t bin : bins) {
|
|
totalHeight += bin;
|
|
}
|
|
|
|
return static_cast<double>(totalHeight) / bins.size();
|
|
}
|