Algorithms Live! Episode 10
http://algorithms-live.blogspot.com/2017/03/episode-10-pitcher-pouring.html
Codeforces Round 944 Solution Discussion