Chef and Socks
Chef needs $A$ dollars to buy himself a new pair of socks for Christmas. If he has $X$ dollars saved up and his parents give him an additional $Y$ dollars, will Chef be able to buy new socks? ### Input - The first and only line of input will contain $3$ space-separated integers $A, X, $ and $Y$ — the cost of the socks, the amount of money Chef has saved up, and the additional money he received
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