Topcoder SRM 604
Codeforces round 226 - Div2