Comments

deleted

This is awesome.

nevermind

Issue was integer overflow not that log function.

deleted

When you will get to know the solution of A, then you will be surprised possibly. I was laughing at myself. peace!!

Segment trees take 4*n space. So it won't be a problem with MLE.

Can we do Div4-E with segment trees?

On MonogonCodeforces Round #639, 6 years ago
+1

thanks for the help!!

On MonogonCodeforces Round #639, 6 years ago
0

In div2-C, for the test case:-

n=2 array={0,1}

why the answer is "NO"?Please explain it someone.