A rolling week
https://petr-mitrichev.blogspot.com/2018/12/a-rolling-week.html
Codeforces Round 946 Solution Discussion