Easy15 pts
Jumping on the Clouds: Revisited
Circular clouds 0/1. Start 0, jump k. 1 costs 2. Stop when back to 0. E=100. Final E?
Input
n k\nc[]
Output
E after game.
Sample
8 2 0 0 1 0 0 1 1 0
Expected
92
Loading editor…
Output
No output yet. Run your code to see results.