TopCoder SRM 477 Division 2 - Level 1 : BestSchedule