Celebrations
CodeChefOpen on judge ↗
Holi is nearing and brothers Avinash and Abhilash want to celebrate it in a grand manner. They make a decision to order 3 different kinds of paintballs: red, green and blue and then store them in different boxes. They store these paint-balls in $N$ boxes and ensure that there is only one type of paint-ball in each one of them. To be precise, $i^{th}$ box either contains red paint-balls or bl
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