apple pie's submission of Take discount or Not | CodeChef