Solve Codeforces Round0255 Div2C