• + 0 comments

    my python solution:

    def chocolateFeast(n, c, m):

    chocolate = int(n/c)
    wr = chocolate
    
    while wr >= m:
        chocolate +=1
        wr -= m
        wr += 1
    return chocolate