Hi, I'm trying to solve [this problem](https://www.urionlinejudge.com.br/judge/es/problems/view/2912). The brute force approach is factorial so it evidently won't work. I've got a feeling that there must be a greedy strategy to solve it, but I haven't been able to figure it out just yetthe problem [Jeopardized Election](https://www.urionlinejudge.com.br/judge/es/problems/view/2912). This was problem J in 2018 ICPC Latin America Regional Contest. No team in Latin America was able to solve it during the contest, check out the [final scoreboard](http://maratona.ime.usp.br/hist/2018/resultados18/resultadoslatam.pdf). I'm trying to figure out the solution but so far I can only think of the brute force approach, which is factorial and can't work. I've got a feeling that there must be a greedy strategy to solve it, but I'm not sure. Any help will be appreciated.↵
↵
Thank you very much!
↵
Thank you very much!