Editorial for VPEX P1 - War on Two Fronts


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

The person Darcy attacks does not give any points, so Darcy should attack the person with the least points.

For each side, simply add up the points of each person and subtract the minimum. Then find the maximum of these 2 results.

Time Complexity: \mathcal{O}(1), as there are only 10 people in total


Comments

There are no comments at the moment.