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 134 / 174 1500
Divisibility 2 100 / 129 1500
Coprime query 92 / 103 1500
GCD pairs counting 87 / 92 1500
Good string pairs 52 / 60 1500
Permutation problem 49 / 53 1600
Restricted equation 43 / 48 1700
Moving through matrix 45 / 49 1700
Restricted equation 2 30 / 31 1800
Binary matrix 2 37 / 44 1900
Permutation Counting 2 19 / 36 2000