You are viewing a single comment's thread. Return to all comments →
python3 def solve(n, operations): # Write your code here total = 0 for i in operations: indices = i[1]-i[0]+1 total += i[2]*indices return math.floor(total/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 →