Chef’s exam will start M minutes from now. He wishes to watch a series of N episodes, each K minutes long.
Determine if it is possible for him to watch the entire series strictly before his exam begins.
Since each series is K minutes long, chef will require a total of N*K minutes to watch all N episodes of the series.
Therefore, it is only possible to watch the entire series before his exam begins if, the total time to watch the series is less than the time remaining for the commencement of the exam \implies N*K < M.
YES if the above equality holds, and
per test case.
Editorialist’s solution can be found here.
Experimental: For evaluation purposes, please rate the editorial (1 being poor and 5 excellent)