backup http://acm.hdu.edu.cn/showproblem.php?pid=3541 http://blog.csdn.net/kang205/article/details/6305159