← All problemsSign in

Fluffy and Flippy Bird

Fluffy the Squirrel is playing a game based on his friend Flippy the Bird. The game is called Flippy Bird. Initially, Flippy will be standing on the number 0 on the number line. Then, Fluffy can perform n moves. For each move i, Fluffy can choose a direction, left or right. Then, Flippy will move in that direction for ai seconds. (and he travels 1 unit every second) Fluffy wins if Flippy's final p

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start