apple pie's submission of Crossing Blocks | CodeChef