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 95 / 132 1500
Divisibility 2 66 / 91 1500
Coprime query 63 / 70 1500
GCD pairs counting 54 / 58 1500
Good string pairs 29 / 35 1500
Permutation problem 29 / 31 1600
Restricted equation 23 / 27 1700
Moving through matrix 24 / 26 1700
Restricted equation 2 11 / 11 1800
Binary matrix 2 20 / 24 1900
Permutation Counting 2 12 / 24 2000