Codeforces 900D (Codeforces Round #450 Div. 2) Unusual Sequences 容斥定理
D. Unusual Sequencestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputCount the number of distinct sequences