Editorial for ECOO '21 P3 - Quintessential Questions
Submitting an official solution before solving the problem yourself is a bannable offence.
We should loop through all of the emails Keenan received, and keep track of, for each question, the best answer. This can be done with two arrays, one to store the best answer received, and the other to keep track of the best professor for each question.
The subtask was intended to reward inefficient solutions.