You are viewing a single comment's thread. Return to all comments →
def chocolateFeast(n, c, m): total_bars=n//c wrappers=total_bars while True: bars=wrappers//m total_bars+=bars wrappers=(wrappers%m)+bars if wrappers//m==0: break return total_bars
Seems like cookies are disabled on this browser, please enable them to open this website
Chocolate Feast
You are viewing a single comment's thread. Return to all comments →