Donald and Mickey
CodeChefOpen on judge ↗
Donald Duck and Mickey Mouse are great friends. Donald loves Mathematics whereas Mickey loves programming. Donald’s teacher thinks he is oversmart and therefore gives him a very difficult problem. Donald is able to solve the problem mathematically, but being new to programming - he is unable to code it. The problem is to find the number of non negative integral solutions of the equation given belo
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