import bisect
from collections import deque

#用来处理已排序的序列，用来维持已排序的序列， 升序
#二分查找

inter_list = deque([2,3,2])
bisect.insort(inter_list, 3)
bisect.insort(inter_list, 1)
# bisect.insort(inter_list, 5)
bisect.insort(inter_list, 2)
# bisect.insort(inter_list, 6)

print(bisect.bisect(inter_list, 3))
#学习成绩
print(inter_list)
