A week that's never sorry
http://petr-mitrichev.blogspot.com/2015/08/a-week-thats-never-sorry.html
Codeforces Round 950 Solution Discussion