Algorithms for Competitive Programming - Source: e-maxx.ru