Create Codeforces Round #221 (Div. 1)的D题