WEIGHTS
CodeChefOpen on judge ↗
The "He-Man" Gymnasium, Jabalpur wants to organise a weight-lifting competition. The weight discs will be placed on the ends of a single long weight lifting bar. The competitor lifts the weight bar by holding it in the middle ( like on the practice problems page of Codechef ! ). The problem is, the Gymnasium does not have weight discs of equal weight in equal numbers. Manager Monnu wants to determ
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