• + 1 comment

    Easy one

        def chocolateFeast(n, c, m):
    tot=wrap=n//c
    while wrap>=m:
        tot += wrap//m
        wrap = (wrap//m)+(wrap%m)
    return tot