← All problemsSign in

Cold Water

A lot of guests have suddenly shown up at your house and you only have $x$ litres of cold water (at $y$°) at the moment. Due to fear of Covid, each guest brings their own bottle, each of which already has $M_i$ litres of water at $C_i$°. Each of these bottles has infinite capacity. If you add cool water to the $i^{th}$ bottle, the temperature changes according to the formula $T_{final} = \frac

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