http://acm.pku.edu.cn/JudgeOnline/problem?id=1168

While not solution