http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=2250
http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=2249