Comments

Any way, the description of problem B is really a misleading. However, we can understand the real meaning with the example IO.

It is a shame that I have been stuck in A for 1h. Luckly, I skip A and solve B&C in 20 minutes.

On Hudayar → Let's grow!, 4 years ago
0

I'm in.

I wish i will become 2100 before 2023.

I will work hard to make it come true

In China, many people will use Li-Chao Segment Tree instead of nomal segment tree. Because it is short and it can solve the problem as well as the nomal segment tree.