Tomaz Hocevar's submission of Lights | CodeChef