← All problemsSign in

Prize Money Distribution

Shubham participated in [Technovation2k18](http://technovation2k18.org). He won $N-1$ contests in a team with Surya and one individually. For $N-1$ he need to share prize money with Surya and he can keep $Kth$(0 based indexing) contest's prize for himself(does not need to share with Surya). Since Shubham is not good at maths, so he did not distributed the money correctly. Help him to distribute t

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start