Long Inversions

Problem Name:
Long Inversions
Site:CodeForces
Links:
Tags:
Problem setters: