TopCoder SRM 630 div 2, 250 AC.