You are viewing a single comment's thread. Return to all comments →
Here is my Python solution!
def howManyGames(p, d, m, s): games = 0 while True: if p > s: return games s -= p p = p - d if p - d >= m else m games += 1
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 →
Here is my Python solution!