Shopkeepers and colors
CodeChefOpen on judge ↗
Colors are often in demand during Holi. On the market, all sorts of colors are available and there are several choices to choose from. One of the shopkeepers in Deoghar, on 6 March 21, is decorating his shop for this upcoming HOLI. The shopkeeper has only two different colors, RED and GREEN. There are N numbers of plates available to the shopkeeper. He needs to place it in a line so that there ar
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