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