In this problem, basead on Colin solution, I make some comments concerning a codeforces round 744 div 3 problem which is pretty simple, however good for people that are beginners.
https://codeforces.com/contest/1579 codeforces Problems
https://codeforces.com/submissions/galen_colin/contest/1579 Colin Solutions