B - Breaking Bad
CodeChefOpen on judge ↗
Mr. Walter White is accidentally locked up in his chemical laboratory. The laboratory has only one exit i.e a door with strength $S$. To escape out of the lab he decides to initiate some blasts near the door using the chemicals present in the lab. More formally, to initiate a blast he can choose any $2$ chemicals and mix them in an unbreakable test tube(which he always keeps with himself), and
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