TopCoder SRM 502 div 1, 250 AC.