Vinish and New Year Resolutions
CodeChefOpen on judge ↗
Being very thin and skinny, Vinish wants to join the gym as part of his New Year Resolutions. There is a universal gym, where there is a big fitness hall with capacity for maximum p people, each of whom completes finishing e exercises sequentially. Doing each exercise requires one unit of time. Unfortunately, gym service is provided sequentially. After all of the p people enter the gym, the entra
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