Zhang Yide's submission of Profit Maximization | CodeChef