C - K-inversions URAL - 1523 (dp + 线段树)

NoSuchKey