How to solve atcoder beginner contest 127 Q C?
Question link:-Question link kindly tell me the approach i am not able to understand the question that well?
Find number of ID's where L[i] <= ID <= R[i] for all 1<=i<=M at same time.
ID's
L[i] <= ID <= R[i]
1<=i<=M
Find number of
ID's
whereL[i] <= ID <= R[i]
for all1<=i<=M
at same time.