Devesh Agarwal's submission of FlatLand | CodeChef