第一题排序+贪心,第二题加入unordered set,计数,第三题deque模拟,第四题有unordered map查找计数,注意删除前面的