题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1372
参考链接:http://www.acmerblog.com/hdu-1372-Knight-Moves-1802.html