座標圧縮
計算量:
$ O(NlogN)
code: comp.py
nums = sorted(set(a))
for i in range(n):
a
i
= bisect_left(nums, a
i
)
$ nums[i \rbrack
で解凍もできる。