Problem

Source: Bulgaria EGMO TST 2018 Day 2 Problem 2

Tags: graph theory, combinatorics, Extremal combinatorics



A country has $100$ cities and $n$ airplane companies which take care of a total of $2018$ two-way direct flights between pairs of cities. There is a pair of cities such that one cannot reach one from the other with just one or two flights. What is the largest possible value of $n$ for which between any two cities there is a route (a sequence of flights) using only one of the airplane companies?