You are viewing a single comment's thread. Return to all comments →
def chocolateFeast(n, c, m):
ch = n/c
all_ch = ch
all_ch += ch/m
ch = ch/m + ch%m
GOT IT MAN
check it before posting , its going in an infinite loop.
please correct the while it must be ch>=m.