TopCoderOpen 2014 Round 1B, 250 AC.