The code was built with Python 3.7.2.
Each test has a input file.
python median_of_m.py < input_median_of_m.txt
python different_colors.py < input_different_colors.txt
If you want to get the output in a file. execute:
python source_code.py < input_file.txt > output.txt
Hector Aristimuño.
email: haristimuno05@gmail.com