algorithm(贪心算法)