← All problemsSign in

The gaming challenge

A game of cards was being played by $K$ players but they got bored.So, Mr SB (the first player) proposed the idea to distribute the cards in $N$ packs. He is a stupid person so Mr SR (an intelligent person ) asks him to shuffle the cards.So,finally, there are $N$ pack of cards where the i'th pack has $X(i)$ cards. In each turn, each player can choose any pack and remove any number of cards ( grea

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