Fair Share Settlement
You and $K$ of your friends gather for dinner at a restaurant, and the total bill is Rs. $N$. You pay the entire bill, and since everyone shared the food equally, the bill needs to be split evenly among you all. After asking your friends to reimburse their fair shares, each person pays you back. However, if the amount to be paid back wasn't an integer, they round down to the previous integer val
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