http://acm.hdu.edu.cn/showproblem.php?pid=1427 http://blog.csdn.net/xingyeyongheng/article/details/11137631