apple pie's submission of Discount | CodeChef