Help Ambrosius
CodeChefOpen on judge ↗
Ambrosius flume owns a sweet shop “Honeydukes” in a village called Hogsmead. There are N helpers there. Each helper has his own wage. The wage of i-th helper equals Wi ( i= 1, 2, 3, …, N). Once Mr.Flume decides to equalize all helpers that is he wants to make wages all helpers be equal. But for this goal he can use only one operation: Increase the wage by 1 galleon of each helper, except the wage
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