Weightlifting Management
CodeChefOpen on judge ↗
A weightlifter has the regular habit of lifting weights up to a total weight TW assigned by his trainer. He lifts the same weight SW multiple times to complete the limit. When he finds that SW is greater than the remaining weight, he leaves for his home. The same routine is followed every day. The weightlifter is not good with calculations. He needs your help to find the remaining weight and the n
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