A circular week
http://petr-mitrichev.blogspot.com/2016/09/a-circular-week.html
Codeforces Round 945 Solution Discussion (with myself)
Atcoder ABC #354 Solution Discussion