← All problemsSign in

Chef and his Tuition

Mr. Chef recently started giving tuitions on Computer Programming to $N$ students and the fee was $X$ per student. Mr. Chef is a spendthrift, so in order to control his spending habits, he thought of a plan. He decided to give each student a due date $D$i at random between $1$ and $20$ of the month, so that he could receive some amount of money throughout the month. He also told the students that

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start