• + 0 comments
    def solve(n, operations):
        count=0
        for operation in operations:
                count+=operation[2] *(operation[1]-operation[0]+1)
        return math.floor(count/n)