Jack And Rum
CodeChefOpen on judge ↗
Jack Sparrow, sorry Captain Jack Sparrow, is out of rum. He needs to send some of his crew members to rob Tortuga's rum deposits. Tortuga's rum deposits have infinite number of bottles and each of them is labelled uniquely by a bottle_id as an integer starting from 0, ranging ofcourse till infinity without any missing integer. The infinite resource of these bottles must be well secured by Tortuga.
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