Weight Equalizing
CodeChefOpen on judge ↗
A giant Ferris wheel has been put up in basin city and everyone wants to sit on it but there are a few conditions that need to be satisfied before that happens. The town has n people every kth person has a weight w(k)- that is the weight of the 1st person is w1 the 2nd person w2 etc. The conditions are: 1. One capsule of the Ferris wheel can only have two people. 2. Every capsule should have the
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