Tourist's Notes CodeForces - 538C 贪心算法如何改写为长尾?