arr = [] import bisect def insertValue(x): # TODO: 实现插入逻辑 bisect.insort(arr, x) def eraseValue(x): # TODO: 实现删除逻辑 index = bisect.bisect_left(arr, x) if index<len(arr): if arr[index] == x: arr.pop(index) def xCount(x): # TODO: 求x在集合中的个数 return bisect.bisect_right(arr, x)-bisect.bisect_left(arr, x)...