Zhang Yide's submission of Determine the Maximum Sum of Weights | CodeChef