Blackjack
Chef is playing a variant of Blackjack, where $3$ numbers are drawn and each number lies between $1$ and $10$ (with both $1$ and $10$ inclusive). Chef wins the game when the sum of these $3$ numbers is exactly $21$. Given the first two numbers $A$ and $B$, that have been drawn by Chef, what should be $3$-rd number that should be drawn by the Chef in order to win the game? Note that it is possibl
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