Ring Master
CodeChefOpen on judge ↗
Powerland is a wonderful land and the most famous thing of Powerland is power rings. The speciality of these rings are that each of them has powers and that the power contained in each ring is equal to the weight the ring . The king of the powerland has N rings and the weight of the N rings are 1 kg, 2 kg, 3 kg,......,N kg respectively. The king now wants to distribute these N rings into two sets
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