Module Inclusion-exclusion principle

Inclusion-exclusion principle

**Frequency: 5/10** A commonly used technique in solving combinatorics problem.

Resources

- [CP Algorithms: The Inclusion-Exclusion Principle](https://cp-algorithms.com/combinatorics/inclusion-exclusion.html)

Problems

Divisibility 107 / 144 1500
Divisibility 2 78 / 103 1500
Coprime query 77 / 85 1500
GCD pairs counting 67 / 73 1500
Good string pairs 37 / 43 1500
Permutation problem 37 / 40 1600
Restricted equation 29 / 33 1700
Moving through matrix 30 / 32 1700
Restricted equation 2 16 / 16 1800
Binary matrix 2 26 / 30 1900
Permutation Counting 2 13 / 25 2000