• + 0 comments
    def chocolateFeast(n, c, m):
        a=o=n//c
        for _ in range(5):
          if a<m:
            break
          o+=(a//m)
          a=(a//m)+(a%m)
        return o