Andrey Kim's submission of The Counties | CodeChef