I have participated in enough programming contests to understand all the most known algorithms, especially those that are related to graph theory. I have just finished my lectures and have a lot of free time, so I decided to make use of it by doing some work here.