← All problemsSign in

Maximize Colours

CodeChefRating 1415Open on judge ↗

For the human eye, primary colours are red, green, and blue. Combining $1$ drop each of **any two primary** colours produces a new type of secondary colour. For example, mixing red and green gives yellow, mixing green and blue gives cyan, and, mixing red and blue gives magenta. You have $X, Y,$ and $Z$ drops of red, green, and blue colours respectively. Find the **maximum** total number of **di

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