You are viewing a single comment's thread. Return to all comments →
def chocolateFeast(n, c, m): # Write your code here baught = n // c wrappers = baught while wrappers >= m: baught_with_wrappers = wrappers // m baught += baught_with_wrappers wrappers = wrappers % m wrappers += baught_with_wrappers return baught
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 →