← All problemsSign in

Chemistry Mystery

OJ, who is currently in her chemical major, is studying a chemical mixture for her research. He finds out that making the mixture requires her to mix certain chemicals. Each chemical has 2 values : Value A and Value B and both these values describe one chemical, as these values changes, the chemical changes. Each chemical also has a price associated P[i]. OJ knows he requires N chemicals to comp

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start