← All problemsSign in

Clothing Store

CodeChefRating 947Open on judge ↗

Chef owns a clothing store and has a limited number of t-shirts in different sizes. There are three sizes available: - Small ($S$): Chef has $X$ small t-shirts. - Large ($L$): Chef has $Y$ large t-shirts. - Extra Large ($XL$): Chef has $Z$ extra-large t-shirts. There are $A$ people who wear small, $B$ people who wear large, and $C$ people who wear extra-large t-shirts. Each person is happy if th

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