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