I'm not quite sure what type of problem this is, although at the first glance it looks similar to traveling salesman (if you know the specific name of such variation please let me know).
The problem is:
A store has $n$ branches $s_1,s_2,...,s_n$. The salesman has to travel all of them in order to collect different products.
- When the salesman finishes his work in the branch $1 \le j \le n$ he receives $m_j$ revenue.
- For $j \le n-1$ from branch $s_j$ departs a flight to the next branch $s_{j+1}$ for the cost of $c_j$. From the last branch $s_n$ departs a flight to the first branch $s_1$ for the cost of $c_n$.
It's given that the total amount of revenue equals the total amount of flights cost that is: $$ \sum_{j=1}^n m_j=\sum_{j=1}^n c_j $$ At each time the salesman can only pay for the next flight from the money he currently has.
The salesman can decide from which branch to start the journey and the first flight will be free for him.
Prove that there's always $a \le j \le n$ such that if the salesman starts the journey from branch $s_j$ he will be able to finish his journey with his budget.
I thought first of all that we can express mathematically the problem as follows: $$ \exists j, s_j|m_j \ge c_{j+1} $$ because the way I understand it there has to be a branch where the salesman will receive enough money to cover the cost of traveling to the next branch.
If we suppose that there's not such a branch I guess the equivalent will be: $$ \forall j, s_j|m_j < c_{j+1} $$ but then $\sum_{j=1}^n m_j<\sum_{j=1}^n c_j$ which is a contradiction.
