TopCoder SRM 622 div 2, 250 AC.