Double Burgers
You have taken an eating challenge from Chef and now you have to eat exactly $Y$ burgers. You will eat in the following way: - In the first minute you will eat exactly $X$ burgers and every minute after that you will eat exactly twice the number of burgers you ate in the previous minute. - Since you can get tired of eating, Chef also allows you take a break from eating for exactly $1$ minute.
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