You are viewing a single comment's thread. Return to all comments →
def chocolateFeast(n, c, m): tot=wrap=n//c while wrap>=m: tot += wrap//m wrap = (wrap//m)+(wrap%m) return tot
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 →
Easy one