You are viewing a single comment's thread. Return to all comments →
def solve(n, operations): output = 0 for o in operations: output += o[2] * (o[1]-o[0]+1) return output//n
Seems like cookies are disabled on this browser, please enable them to open this website
Filling Jars
You are viewing a single comment's thread. Return to all comments →