Kattappa and his horses
CodeChefOpen on judge ↗
On the day of war, Bahubali planned a Strategy to send Soldiers on horses to defeat the enemy. As bahubali asked Kattappa to send $N$ horses in groups, he has to send the horses in groups (one or more) where each group consists of at least $K$ horses( The sum of number of horses in each group must add up to $N$). Find the number of ways he can group the horses. ###Input: - First line is an int
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