Breaking Bad
CodeChefOpen on judge ↗
Walter as we all know hates meth. But he also loves his job (chemist). Walter now has n chemicals with him. He gives you an affinity chart with e lines. He selected the chemicals in such a way that any chemical when put into the test tube instantly forms a bond with all the elements with which it is capable of forming a bond with. He also gives you a White-Heisenberg constant k which denotes the
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