Watching Movies at 2x
Chef started watching a movie that runs for a total of $X$ minutes. Chef has decided to watch the first $Y$ minutes of the movie at **twice** the usual speed as he was warned by his friends that the movie gets interesting only after the first $Y$ minutes. How long will Chef spend watching the movie in **total**? **Note:** It is guaranteed that $Y$ is **even**. ### Input - The first line contai
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