FIND THE POISONED BOTTLE
CodeChefOpen on judge ↗
Andrew, who is a milkman, has $ N$ bottles of milk to sell. Bob, who is another milkman of the same locality conspired against Andrew. He had poisoned $one$ of Andrew's $N$ milk bottles. Andrew somehow comes to know about this conspiracy. But he has very little time as he has to deliver the milk to his customers the very next morning. He cannot suffer the loss of throwing away all t
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