Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
478 B
0
Indexable
Never
#include <iostream>
#include <vector>
#include <string>
#include <algoritm>

using namespace std;
int main() 
{
	vector<int> mass;
	vector<int> masss;
	int n;
	int m;
	cin >> n >> m;
	int a;
	cin >> a;
	for (int i = 0;i<n;i++) 
	{	
		for  (int j = 0; i < m ; i++)
		{
			mass.push_back(a);
		}
		sort(mass.begin(), mass.end());
		masss.push_back(mass(mass.size() - 1) / 2);
		sort(masss.begin(), masss.end());
		cout<< masss(mass.size() - 1) / 2);
	}
}