Approach hintTry it first, then revealHide
First add up the theorems from minutes when Mishka is already awake. Then slide a window of length k that measures only the extra theorems from sleeping minutes, and add the best such gain.
First add up the theorems from minutes when Mishka is already awake. Then slide a window of length k that measures only the extra theorems from sleeping minutes, and add the best such gain.