Random queury codeforces

sir/maam can u plz tell me what is mean by l to r segment
int the que how can we apply exp linearity rule here ??
https://codeforces.com/problemset/problem/846/F

Hey @Ashu1318

Refer to Doubt in expected value