← All problemsSign in

Money heist

Professor is planning the heist, but there are certain rules he wants to follow in order to complete it. They are: 1. There must be at least two members including him. 2. The amount they rob should be distributed equally among them and not in fraction (3 cannot be divided between two as both gets 1.5 which is fractional value). 3. Each person should get strictly more than 1 Rs.

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