#include #include #include #include using namespace std; int main() { int buffer; cin >> buffer; char* end; int numberOfNumbers = buffer;// strtol(buffer.c_str(), &end, 10); vector numbers; for (auto i = 0; i != numberOfNumbers; ++i) { cin >> buffer; numbers.push_back(buffer/*strtol(buffer.c_str(), &end, 10)*/); } sort(numbers.begin(), numbers.end()); int centerIndex = numbers.size() / 2; cout<<(numberOfNumbers % 2 == 1 ? numbers.at(centerIndex) : (numbers.at(centerIndex - 1) + numbers.at(centerIndex)) / 2.0)<