My lib for algorithm contests.