Bheem and his chocolates
CodeChefOpen on judge ↗
Bada Bheem who loves chocolate day in VESIT, went to the magical place called Choco-ville. In Choco-ville, there was a shop where infinite number of chocolates were available of K different colors. He wishes to select N chocolates. Also, he wants to have at least 1 chocolate from each color. Since, his selection can be made in many ways. Now he calls you to know how many ways are possible for his
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