You are viewing a single comment's thread. Return to all comments →
Solution in Python 3.0
def chocolateFeast(n, c, m): chocolateBars = n // c return chocolateBars + (chocolateBars - 1) // (m - 1)
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 →
Solution in Python 3.0