Editorial for Arcadia Computing Contest 1 P3 - ScanTron


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.

Author: kevlu8

Create a prefix sum array and a suffix sum array on whether or not the answers match. Then, the answer is the maximum value of the sum of the prefix and suffix sum for every index.


Comments

There are no comments at the moment.