IceCreams
CodeChefOpen on judge ↗
Tushar is in a shop with an infinite amount of Ice-creams. He is allowed to select n Ice-creams. There are Ice-creams of k different flavors. From each flavor there are also infinitely many Ice-creams. Tushar wants to have at least one Ice-cream of each flavor, but still there are a lot of possibilities for his selection. Now help him to find how many possibilities are there for his selection. Ass
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