Tomaz Hocevar's submission of Closest Ranking | CodeChef