Hi All,
I gave the same input as given next to the qs. 5 1 2 3 4 5 4 1 2 3 2 3 4 1 1 1 1 5 1000000000 it worked fine on my system. Should I include some checks like..
1 ≤ N ≤ 100,000
1 ≤ Ai ≤ 100
1 ≤ T ≤ 100,000
1 ≤ Li ≤ Ri ≤ N
1 ≤ Mi ≤ 109
Thanks and Regards, Anju