Weights in Gym
CodeChefOpen on judge ↗
Johny Bravo recently joined the gym and is feeling very vulnerable.He wants to look neither too weak nor adamant.So he is observing other gym members very carefully. All members are lifting weights in integers like 10 kg,20 kg and so on. Note that there are two types of weight lifted in the gym. First is dumbells (Type : 1) which are lifted by both hands.For example, if I am lifting 10 kg dumbells
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