[SRM365] TournamentsAmbiguityNumber by Yanzhe Chen