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