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 235 / 281 1500
Divisibility 2 161 / 201 1500
Coprime query 161 / 181 1500
GCD pairs counting 139 / 144 1500
Good string pairs 100 / 108 1500
Permutation problem 92 / 97 1600
Restricted equation 75 / 80 1700
Moving through matrix 76 / 81 1700
Restricted equation 2 54 / 56 1800
Binary matrix 2 56 / 64 1900
Permutation Counting 2 27 / 49 2000