Comments
-13
Spoiler

ohh yeah now i undertood that, I was thinking something else the whole time. Thanks for the explaination :D

Can you please explain why the loop is till min(l+101,r)?

This round motivated me to solve more problems ;)
How to do A? i tried and i'm getting tle.

Spoiler