Make a report
CodeChefOpen on judge ↗
Penny works in a law firm. She has to solve a case in n days. According to her boss, she has to work at least mi hours and at most Mi hours on an ith day to win the case. As per the office regulations she has to maintain and submit a report of the number of hours she had worked on the day of the final hearing of the lawsuit. Penny being a forgetful person, she forgot to maintain the report of th
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