Andrey Kim's submission of Bear and Clique Distances | CodeChef