Codeforces 744C Hongcow Buys a Deck of Cards 状压dp (看题解)

NoSuchKey