Problem link: https://codeforces.com/contest/1393/p...
Link to comment & clean code: https://codeforces.com/blog/entry/810...
This video is a visual simulation of the editorial for the problem Applejack and Storages from CF Round #662 for 2 testcases.
Consider subscribing if you want to watch similar editorials in the future
Visualizations are made using manim, the library written by @3Blue1Brown