TopCoderOpen 2014 Round 1C, 250 AC.