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