CPMagical CP Library

Open-source solutions

Community
Solutions.

Search problem solutions and algorithm references across seven languages. Use them as guidance when you are genuinely stuck, understand the idea, then write your own solution.

18,988solutions
11,398searchable titles
7languages
11sources

Learn from the code

Try the problem first.

The code belongs to its original authors and is used under the linked open-source licence. If you get stuck, use the solution to understand the idea and then write your own.