http://acm.pku.edu.cn/JudgeOnline/problem?id=1000 http://acm.pku.edu.cn/JudgeOnline/problem?id=1298 http://acm.pku.edu.cn/JudgeOnline/problem?id=2273