apple pie's submission of Points and Lines | CodeChef