Create Codeforces Round #227 (Div. 2)的D题