carvans problem - http://www.codechef.com/problems/CARVANS
Buy1-Get1: http://www.codechef.com/problems/BUY1GET1