Saree and Friendship
CodeChefOpen on judge ↗
Prince lives in a place called blocked-zone. He is looking to move to a new place called friend - zone. The governor of both these places Madhu has some dreams of her own. She wants a total of ‘N’ sarees to try out in upcoming college festivals. There are total ‘M’ type of sarees available in the market, and she wants to try all type of sarees. Due to demonetization and people carrying only Rs. 2
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