Hello Codeforces, I was solving the problem, and I got the right idea, but there was a problem with choosing the index randomly using uniform_int_distribution<int>.
sol1: This gives me WA at test case 32 because I was trying to pick index directly.
sol2: Now, at this time I pick randomly with lower_bound, and it worked.
Is there any better way to choose index uniformly and randomly?
Thanks in advance:)




