You are viewing a single comment's thread. Return to all comments →
def how_many_games(p, d, m, s): if s < p: return 0 c = 0 while s >= m: s -= (p - c*d) if ((p - c*d) >= m) else m c += 1 if s >= 0 else 0 return c
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 →