← All problemsSign in

Monica with her kids!!

It's summertime and Monica has made a lot of blueberry jam with plans to make delicious sandwiches for her kids - Erica, Jack, Phoebe, Daniel and of course Joey. Being the organizational freak that she is, Monica filled the jam into jars and then divided them into $B$ boxes such that every box had n jars labeled with numbers from $1$ to $n$. Monica remembered what had happened the last time and d

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