You are viewing a single comment's thread. Return to all comments →
Simple python solution:
energy = 100 #initial energy i = k % n #initial jump from 0 energy -= c[i] * 2 + 1 #initial energy loss while i != 0: i = (i + k) % n energy -= c[i] * 2 + 1 print energy
Seems like cookies are disabled on this browser, please enable them to open this website
Jumping on the Clouds: Revisited
You are viewing a single comment's thread. Return to all comments →
Simple python solution: