You are viewing a single comment's thread. Return to all comments →
Here is my Python solution!
def chocolateFeast(n, c, m): wrap = n // c total = n // c while True: if wrap < m: return total total += wrap // m wrap = wrap // m + wrap % m
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 →
Here is my Python solution!