Editorial for DMOPC '18 Contest 5 P0 - A Digital Art Problem
Submitting an official solution before solving the problem yourself is a bannable offence.
For the Multiply and Screen modes, just output the results of applying the respective formulas to each of the 3 components. For the Overlay mode, we would need an
if statement to check if each base component is less than or greater than or equal to ~0.5~, then use the correct formula for each component.