Special Colors
CodeChefOpen on judge ↗
Droid C3PO has a strange way of perceiving colors. He sees colors as a combination of red, blue and green. To be more precise, each color is represented by three integral indices (R,B,G). For example, (0,0,1) and (0,1,1) represent two different colors. The range of values of R, B, G is from 0 to K(inclusive). The value of K depends on the planet C3PO is currently on. C3PO likes a certain type o
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