You are viewing a single comment's thread. Return to all comments →
Solution From my side
def howManyGames(p, d, m, s): results = [] results.append(p) while(sum(results)<=s): if(p>m and (p - d)>m): p = p - d results.append(p) else: results.append(m) return len(results)-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 →
Solution From my side