http://blog.csdn.net/jokes000/article/details/7839686 http://blog.csdn.net/shiqi_614/article/details/7982915 题目:http://acm.hust.edu.cn/vjudge/contest/22645#overview