C++ snippets with useful algorithms and data structures for contests.