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.
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 results.
Time Complexity: , as there are only people in total
Comments