Solution for INVZCNT?

How to solve the Counting the inversion again problem from division 2?

4 Likes

Ye raaz bhi contest ke saath hi chala gaya.

2 Likes

Check this out: INVZCNT Unofficial editorial