A tourist week
https://petr-mitrichev.blogspot.com/2019/02/a-tourist-week.html
Codeforces Round 946 Solution Discussion