You are viewing a single comment's thread. Return to all comments →
This is my approach
def howManyGames(p, d, m, s): n_games=0 while(s>=p): s-=p n_games+=1 p=max(p-d,m) return n_games
`
Seems like cookies are disabled on this browser, please enable them to open this website
Halloween Sale
You are viewing a single comment's thread. Return to all comments →
This is my approach
`