You are viewing a single comment's thread. Return to all comments →
Python
def workbook(n, k, arr): st, res = 0, 0 for a in arr: q, r = divmod(a, k) for i in range(a): if i == i // k + st: res += 1 st += q + int(r != 0) return res
Seems like cookies are disabled on this browser, please enable them to open this website
Lisa's Workbook
You are viewing a single comment's thread. Return to all comments →
Python