← All problemsSign in

Decorating Christmas Tree

CodeChefRating 1102Open on judge ↗

You are decorating your Christmas Tree and want to make it beautiful. You consider a Christmas tree beautiful when each leaf of the Christmas Tree is decorated with **either** one of the following : - $1$ large ornament and $3$ small ornaments. - $2$ large ornaments. You have $X$ large ornaments and $Y$ small ornaments. Your Christmas tree consists of $N$ leaves. Determine if you can make the C

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start