Do you know second-price auction? It's very simple but famous. In a second-price auction, each potential buyer privately submits, perhaps in a sealed envelope or over a secure connection, his (or her) bid for the object to the auctioneer. After receiving all the bids, the auctioneer then awards the object to the bidder with the highest bid, and charges him (or her) the amount of the second-highest bid.
Suppose you're the auctioneer and you have received all the bids, you should decide the winner and the amount of money he (or she) should pay.
2 3 3 2 1 2 4 9
1 2 2 4
无
浙江省2009年竞赛第一题 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3365