Timon & Pumba
CodeChefOpen on judge ↗
Timon and Pumba from Lion's King, found new type of bugs. Since both of them are fond of eating bugs & this being a really yummy one. They decided to collect as many as possible & then divide among themselves. Each of the bug has a yumminess attached to it, i.e. two bugs with yumminess X & Y respectively, where X > Y means that bug with yumminess X is more yummy. Timon & Pumba both learnt addit
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