D. Unusual Sequences(排列计数+容斥)

NoSuchKey