Chefs Squid Game
CodeChefOpen on judge ↗
After getting fascinated by Web-series Squid Game, Chef decided to host his own version of Squid Game. In his first round, Each contestant is given $N$ bags with each bag containing M$i$ marbles for each valid $i$. To have fair play the initial number of marbles in each bag given to the contestant are distributed randomly. Also contestants can take any number of extra marbles to clear the game.
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