题目地址:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=26271#overview
解题报告:http://blog.watashi.ws/764/andrew-stankevich-4-solution/