Clearance Sale
Chef's favorite clothing store is holding a clearance sale: for every $2$ t-shirts bought, you receive a third one for free! Chef bought and paid for $X$ t-shirts from the shop. It is guaranteed that $X$ **is even.** How many t-shirts did Chef get from the shop in total? ### Input - The first and only line of input contains a single even integer $X$, the number of t-shirts Chef paid for. ###
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