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