Curious Treat
CodeChefOpen on judge ↗
Digo has received a PPO and is planning to give a chapo(treat) to all DIOGIO members. He has set a budget of n rupees (n=whole number) and will invite 'm' no. of people. He would assign certain integral sum of money for each person. Since he is fair/impartial, he would want that each of 'm' people is assigned the same amount. Also he would like to spend as much as he could (But of course Input
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