Professor Snape and the Correction
CodeChefOpen on judge ↗
Umbridge is known to conduct a lot of examinations in Hogwarts. Due to this, Professor Snape is in trouble because of so many answer sheets to be corrected. He wants to minimize the average waiting time of each student. Hence, he decides which paper he corrects first. Every answer answer sheet takes a different amount of time to be checked. Also, when he starts correcting a paper, he cannot corr
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start