sortedcontainers
isn't sortedcontainers not allowed in codeforces?
CF Edu Round #165 Solution Discussion