A question of weight
CodeChefOpen on judge ↗
You must have visited the old-fashioned green-grocers shop. The one who measures the vegetables in a balance, the vegetables being in one pan with some weights (each weight is known as "baat" eg. a "baat of 5 kg) in the other. Your task in this problem is very simple. Our green-grocer Chandra-vibhushan Pandey has a number of "baat"s and he needs to divide them into the two pans such that the diffe
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