You are viewing a single comment's thread. Return to all comments →
Python:
def solve(n, operations): return int(sum((op[1]-op[0]+1)*op[2] for op in operations)/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 →
Python: