Saath Nibhana Saathiya
CodeChefOpen on judge ↗
One day Rashi went to the kitchen. She took out $N$ strings from the cooker and kept the empty cooker on the stove. But Rashi is clever and she has put the entire blame for this on Gopi. To save herself from the false accusations of Rashi, Gopi must answer $M$ queries asked to her. In each of the $M$ queries, she is given an integer $K$ and she needs to tell the number of possible strings which a
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