You are viewing a single comment's thread. Return to all comments →
Python 3
def chocolateFeast(n, c, m): total = wrappers = n//c while x := wrappers//m: wrappers -= x * (m-1) total += x return total
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 →
Python 3