I stumble on this question (https://atcoder.jp/contests/abc116/tasks/abc116_c) and I cannot for my life understand what the problem ask me to solve
So I understand these part: we have N flowers each flowers start at 0 heights we have sequences of heights that map to each flowers. I know there could be some sort of addition in here because on the third sample, I can see 96+50+75 = 221.
What I didn't understand what is the relation of these "l" and "r" to the problem? I know r should be equal to the number of flower but in the first output, "r" can be 3.
I just cannot understand the problem, even after looking up the answer, I still don't know why the answer like that.
So for sample first input output, they do
and for the second input (1,5) then (1,1) twice then (3,4) then (4,4) assuming l and r can be less than or equal.
The description of (l,r) in the problem might need little more explanation
– sswastioyono18 Jan 30 '19 at 15:19