• + 0 comments

    The question seems unclear to me. In the sample,

    5 5 1 2 3 1 4 2 2 5 6 3 4 1 1 1 1 2 2 3 2 5 1 6

    What's the cost for each query?