• + 0 comments

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