Hello coders,
I misundestood something in problem 69B and I do not know what. Some advice would be great.
I'm getting WA for 3rd testcase.
IMHO the "maximum possible profit" is to bet on 2. runner running 2. section (+10) and bet on 1. runner running 1. section (+1) => result is 11
Test: #3, ... verdict: WRONG_ANSWER
Input:
2 2
1 2 3 1
2 2 3 10
Output: 11
Answer: 2