题目:http://codeforces.com/contest/219/problem/...