solutions to Codeforces Round #273 (Div. 2)