You are viewing a single comment's thread. Return to all comments →
Similar here without iterating every bar/wrapper swap
bars = wrappers = n // c while wrappers >= m: bars += wrappers // m wrappers -= wrappers // m * (m - 1) return bars
Seems like cookies are disabled on this browser, please enable them to open this website
Chocolate Feast
You are viewing a single comment's thread. Return to all comments →
Similar here without iterating every bar/wrapper swap