TopCoder SRM 613 div2, 250 AC.