先贴个模板:http://www.cnblogs.com/jffifa/archive/2012/08/17/2644847.html
题目链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=31294#overview
坑~