Problem

Source: 2024 Israel Olympic Revenge P3

Tags: olympic revenge, combinatorics



In La-La-Land there are 5784 cities. Alpaca chooses for each pair of cities to either build a road or a river between them, and additionally she places a fish in each city to defend it. Subsequently Bear chooses a city to start his trip. At first, he chooses whether to take his trip in a car or in a boat. A boat can sail through rivers but not drive on roads, and a car can drive on roads but not sail through rivers. When Bear enters a city he takes the fish defending it, and consequently the city collapses and he can't return to it again. What is the maximum number of fish Bear can guarantee himself, regardless of the construction of the paths? Remarks: Bear takes a fish also from the city he begins his trip from (and the city collapses). All roads and rivers are two-way.