POJ No.3617, greedy algorithm, inverse compare of array.