Iaroslav Tverdokhlib's submission of Minimum Distance | CodeChef