• + 0 comments
    def solve(n, operations):
        count=0
        for x,y,z in operations:
            count+=z*(y-x+1)
        return count//n