Decorating stalls
CodeChefOpen on judge ↗
Rahul has recently joined a new job at ABC decorators. Today, he got a task to take care of decorating stalls. He decided to use some ribbons for decoration. The ribbons were available in only 3 colors: Red, Yellow and Blue. As he enquired for the availability of ribbons, he came to know that they had a total of $R$, $Y$ and $B$ ribbons of red, yellow and blue colors respectively. Rahul decided t
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