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